How do I tell Gradle to use specific JDK version?

前端 未结 17 2397
时光取名叫无心
时光取名叫无心 2020-11-22 12:12

I can\'t figure out to get this working.

Scenario:

  • I have an application built with gradle
  • The application uses JavaFX

What I w

17条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 12:27

    So, I use IntelliJ for my Android project, and the following solved the issue in the IDE:

    just cause it might save someone the few hours I wasted... IntelliJ -> Preferences -> Build, Execution, Deployment -> Build tools -> Maven -> Gradle

    and set Gradle JVM to 1.8 make sure you also have JDK 8 installed...

    NOTE: the project was compiling just fine from the command line

提交回复
热议问题