Last active
October 25, 2017 16:41
-
-
Save gwpantazes/e0069b646e6db19cbc6ab8d4d70d64fa to your computer and use it in GitHub Desktop.
LibGDX Gradle Build WARNING: An illegal reflective access operation has occurred
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating app in /Users/george/IdeaProjects/TestProject | |
Executing '/Users/george/IdeaProjects/TestProject/gradlew clean --no-daemon idea' | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/Users/george/.gradle/wrapper/dists/gradle-2.14.1-bin/2r579t5wehc7ew5kc8vfqezww/gradle-2.14.1/lib/gradle-base-services-2.14.1.jar) to method java.lang.ClassLoader.getPackages() | |
WARNING: Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
WARNING: All illegal access operations will be denied in a future release | |
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html. | |
Configuration on demand is an incubating feature. | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/george/IdeaProjects/TestProject/build.gradle' line: 55 | |
* What went wrong: | |
A problem occurred evaluating root project 'TestProject'. | |
> javax/xml/bind/annotation/XmlSchema | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
Total time: 7.865 secs | |
Done! | |
To import in Eclipse: File -> Import -> General -> Existing Projects into Workspace | |
To import to Intellij IDEA: File -> Open -> YourProject.ipr | |
Generating app in /Users/george/IdeaProjects/TestProject | |
Executing '/Users/george/IdeaProjects/TestProject/gradlew clean --no-daemon idea' | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/Users/george/.gradle/wrapper/dists/gradle-2.14.1-bin/2r579t5wehc7ew5kc8vfqezww/gradle-2.14.1/lib/gradle-base-services-2.14.1.jar) to method java.lang.ClassLoader.getPackages() | |
WARNING: Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
WARNING: All illegal access operations will be denied in a future release | |
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html. | |
Configuration on demand is an incubating feature. | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/george/IdeaProjects/TestProject/build.gradle' line: 55 | |
* What went wrong: | |
A problem occurred evaluating root project 'TestProject'. | |
> javax/xml/bind/annotation/XmlSchema | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
Total time: 5.881 secs | |
Done! | |
To import in Eclipse: File -> Import -> General -> Existing Projects into Workspace | |
To import to Intellij IDEA: File -> Open -> YourProject.ipr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue can be fixed by downgrading to Java 8.
Java9 can cause the Gradle warning.
WARNING: An illegal reflective access operation has occurred
.