I want to use IntelliJ IDEA 15 instead of Android Studio, but I have a problem with building. I get the following error:
Gradle sync failed: The newly create
just move the jdk folder to intellij wanted folder C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2016.3.4\jre
then change the values in .gradle folder given in wanted line close the project then restart
it works for me....
I had the exact same problem and this is what worked for me.
I deleted the .idea
and .project
files from the root directory of my IntelliJ project. Restarted IntelliJ and opened my project again.
If you're using the Gradle IDEA plugin:
.\gradlew cleanidea idea
build.gradle
file when asked to specify the project to import.I solved it by using idea64.exe and not idea.exe
For me this issue was solved by running IDE in 64 bit mode since I only have 64 bit JRE installed.
For MacOSX, what solved the problem for me was to point the SDK in IntelliJ to Contents/Home
. For example:
This:
/Users//.sdkman/candidates/java/14.0.1-zulu/zulu-14.jdk/Contents/Home
instead of this:
/Users//.sdkman/candidates/java/14.0.1-zulu
It is working with the latest, at this time, Java (14.0.1-zulu), Gradle (6.5) and Kotlin (1.4-M2).