Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Fixed the weird syntax highlighting (as a result, the diff looks more extensive than it really is - use view "Side-by-side Markdown" to compare).
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134

Make sure that your Gradle is using the proper JDK. Try running ./gradlew --version in your project's directory. The output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64
Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If the JVM points to version 1.8 then you should change it in settings. You can find it in PreferencesBuild, Execution, DeploymentBuild ToolsGradle → *Gradle JDK.

Enter image description here

Make sure that your Gradle is using the proper JDK. Try running ./gradlew --version in your project's directory. The output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If the JVM points to version 1.8 then you should change it in settings. You can find it in PreferencesBuild, Execution, DeploymentBuild ToolsGradle → *Gradle JDK.

Enter image description here

Make sure that your Gradle is using the proper JDK. Try running ./gradlew --version in your project's directory. The output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If the JVM points to version 1.8 then you should change it in settings. You can find it in PreferencesBuild, Execution, DeploymentBuild ToolsGradle → *Gradle JDK.

Enter image description here

Bounty Awarded with 100 reputation awarded by Ven Shine
Active reading [<https://en.wikipedia.org/wiki/Gradle> <https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s>]. Used more standard formatting.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134

Make sure that your gradleGradle is using the proper JDK. Try running ./gradlew --version in your project's directory,. The output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If the JVM points to version 1.8 then you should change it in settings. You can find it in Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDKPreferencesBuild, Execution, DeploymentBuild ToolsGradle → *Gradle JDK.

enter image description hereEnter image description here

Make sure that your gradle is using proper JDK. Try running ./gradlew --version in your project's directory, output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If JVM points to version 1.8 then you should change it in settings. You can find it in Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK

enter image description here

Make sure that your Gradle is using the proper JDK. Try running ./gradlew --version in your project's directory. The output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If the JVM points to version 1.8 then you should change it in settings. You can find it in PreferencesBuild, Execution, DeploymentBuild ToolsGradle → *Gradle JDK.

Enter image description here

Make sure that your gradle is using proper JDK. Try running ./gradlew --version in your project's directory, output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If JVM points to version 1.8 then you should change it in settings. You can find it in Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK

enter image description here

Make sure that your gradle is using proper JDK. Try running ./gradlew --version in your project's directory, output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If JVM points to version 1.8 then you should change it in settings. You can find it in Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK

enter image description here

Make sure that your gradle is using proper JDK. Try running ./gradlew --version in your project's directory, output should be something like this:

Gradle 7.0-rc-2
------------------------------------------------------------
Build time: 2021年04月01日 21:26:39 UTC
Revision: 912a3368b654b71250dfc925a20d620393
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OS: Linux 5.11.4-051104-generic amd64

If JVM points to version 1.8 then you should change it in settings. You can find it in Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK

enter image description here

added 612 characters in body
Source Link
M Tomczynski
  • 15.8k
  • 1
  • 19
  • 25
Loading
Source Link
M Tomczynski
  • 15.8k
  • 1
  • 19
  • 25
Loading
default

AltStyle によって変換されたページ (->オリジナル) /