Gradle Build Failed When Using Commandline
I'm currently working on this android project which was just ported over from eclipse to android studio. Using android studio IDE to build the APKs works fine and all but recently
Solution 1:
On MacOS - Check if your ~/.bash_profile
JAVA_HOME
is pointing to the same JDK used by Android Studio.
In my case is like this: export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home/
If it is not, change the .bash_profile to match with the Android Studio.
Solution 2:
Faced with `org.gradle.api.ProjectConfigurationException` error on my `gradle build`
managed to find someone else who had exactly the same problem as me, and his solution works by putting the correct java path into the project's gradle.properties
org.gradle.java.home=/Library/Java/JavaVirtualMachines/<jdk_version>/Contents/Home
Solution 3:
Try to use ./gradlew tasks
instead. See the difference between both commands here.
Post a Comment for "Gradle Build Failed When Using Commandline"