Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Java_%28programming_language%29> <https://en.wikipedia.org/wiki/Gradle> <https://en.wikipedia.org/wiki/Java_Development_Kit> <https://en.wiktionary.org/wiki/preferences#Noun_2> <https://en.wikipedia.org/wiki/Integrated_development_environment>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

If you run into this problem from the terminal in Android Studio, you should configure JAVA_HOME in your environment into javaJava 11, set the gradle jdkGradle JDK in PerferencesPreferences can't solve. I guess that running the gradleGradle from the terminal and running gradleGradle from idethe IDE are not the same process and they use different jdkJDK location.

If you run into this problem from the terminal in Android Studio, you should configure JAVA_HOME in your environment into java 11, set the gradle jdk in Perferences can't solve. I guess that running the gradle from terminal and running gradle from ide are not the same process and they use different jdk location.

If you run into this problem from the terminal in Android Studio, you should configure JAVA_HOME in your environment into Java 11, set the Gradle JDK in Preferences can't solve. I guess that running Gradle from the terminal and running Gradle from the IDE are not the same process and they use different JDK location.

Source Link
Adam
  • 61
  • 4

If you run into this problem from the terminal in Android Studio, you should configure JAVA_HOME in your environment into java 11, set the gradle jdk in Perferences can't solve. I guess that running the gradle from terminal and running gradle from ide are not the same process and they use different jdk location.