Android Studio - Could not determine Java version

gradle could not determine java version
could not determine java version from '12.0.2'. react native
gradle build could not determine java version from 11
jmbe could not determine java version
what went wrong: could not determine java version from '11.0 3
gradle error could not determine java version from 11.0 3
caused by java lang illegalargumentexception could not determine java version from 11.0 6
android studio java version

I installed a fresh copy of Android Studio using terminal but when i create a new project it gives the error "Could not determine Java Version". JDK and SDK both are installed. Android Studio is updated to the latest version. I am using Ubuntu 14.04 LTS

Change this:

targetCompatibility 'JavaVersion.VERSION_1_8'
sourceCompatibility 'JavaVersion.VERSION_1_8'

to this:

targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8

Could not determine java version from '9.0.1', Read this for how to installing JDK on your elementary OS (also it works for java 7). Then If your problem still appears then go to Configure -> Project defaults  I faced the same issue, but on windows 7 OS. It was because multiple versions of java was present in the same location C:\Program Files\Java Java 5, 7, 8, and 9. Although the Environment variables JAVA_HOME and PATH were set to Java 8, Android studio was referring to Java 9.

I faced the same issue, but on windows 7 OS. It was because multiple versions of java was present in the same location C:\Program Files\Java Java 5, 7, 8, and 9. Although the Environment variables JAVA_HOME and PATH were set to Java 8, Android studio was referring to Java 9.

My Solution, in the menu, click on File > Project Structure here, point JDK to appropriate location C:\Program Files\Java\jdk

Android Studio Error: Could not determine Java version, Solving “Could not determine Java version” with Gradle and IntelliJ on Here click on SDKs and make sure that each Java JDK points to a valid folder. Previous PostAndroidAnnotations setup in Android Studio (beta). One potential problem is that older versions of Gradle can't parse the Java version from the java -version output produced by the OpenJDK. Newer versions can (I think it was updated around Gradle 2.2; the latest, 2.9, works).

One potential problem is that older versions of Gradle can't parse the Java version from the java -version output produced by the OpenJDK. Newer versions can (I think it was updated around Gradle 2.2; the latest, 2.9, works).

Solving "Could not determine Java version" with Gradle and IntelliJ , Could not determine Java version using executable (Java 10 build 10+44) #4503 File: "/android/gradle/wrapper/gradle-wrapper.properties". elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up. Android Studio Error: Could not determine Java version. After installing Android Studio, I started getting this error: Error: Could not determine Java version.

change distributionUrl in gradle/wrapper/gradle-wrapper.properties to new version of gradle

Could not determine Java version using executable (Java 10 build , Can't run app on Android Device : Building and installing the app on the What went wrong: Could not determine java version from '11.0.1'. * What went wrong: Could not determine java version from '9.0.4'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I faced the same issue, in ubuntu 16. It was because multiple versions of java was present in the same location 7, 8 and 9. Although the Environment variables JAVA_HOME and PATH were set to Java 8, Android studio was referring to Java 9.

My Solution, in the menu, click on File > Project Structure here, select 8 version

Could not determine java from '11.0.1 · Issue #22487 · facebook , step to reproduce: react-native run-android. Solution. Edit the file /android/gradle/​wrapper/gradle-wrapper.properties and update the last line with: For new Android Studio versions, go to C:\Program Files\Android\Android Studio\jre\bin (or to location of Android Studio installed files) and open command window at this location and type in following command in command prompt:- improve this answer. answered Mar 22 '18 at 9:32. 7 silver badges. 6 bronze badges.

react native 'Could not determine java version from '9.0.1'.', I was using the most recent Android Studio version, and all the SDK packages I could download via SDK Manager in Android Studio. Looks like a regression to me: #3892 Tested with Gradle 4.5.1 and Java 10, on macOS 10.12.6 with IntelliJ IDEA 2017.3.4 Community Edition. The exact message when opening a gradle project is: Could not determine Java version using executa

Java version issue "Could not determine java version from '12.0.1 , Fixing `Could not determine java version from '11.0.5'.` gradlew wrapper --​gradle-version 6.0.1 FAILURE: Build failed with an exception. what I needed to do was: add my machine's Android Studio debug key to the list of  It doesn’t have to be the SDK you’re currently using your project, it can be another version. To do this on MacOSX press F4 at the project to go to its project structure settings. Here click on SDKs and make sure that each Java JDK points to a valid folder.

Fixing `Could not determine java version from '11.0.5'.`, I am trying to build several older projects in Eclipse 2018-12 (4.10.0) with the the Gradle wrapper. All these projects use Gradle 2.14.1. Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at D:\Dev\SDK1\SDK1 • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK

Comments
  • Weird Solution, but works! I guess it is a typo error in AS 3.4
  • I think this is a change in the new Android studio. They want to use the JavaVersion as an object and not a string
  • same problem for me, but after assigning proper jdk location, gradle still find a wrong java version.
  • see this on how to change the gradle version when using the default wrapper: stackoverflow.com/questions/25205113/…
  • Thanks for the answer. Will try that if the error occurs again.
  • I already have a variable. The command returns "/usr/lib/jvm/java-7-oracle "