Reputation: 51
I use IntelliJ IDEA, and there is a problem message:
"Gradle 5.4 requires Java 8 or later to run. Your build is currently configured to use Java 7"
How to handle it?
Upvotes: 5
Views: 17627
Reputation: 1507
Check JAVA_HOME. It might be set to Java 7.
echo $JAVA_HOME
Upvotes: 4
Reputation: 5
Resolved by:
Apply this and run your app it will resolve this issue
Upvotes: -2
Reputation: 402225
Change the Gradle JVM or the Project JDK. You can also use an older Gradle version if you want to stay on Java 7.
Upvotes: 5