7
  [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\jan03\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Java\jdk-16\bin\server\bin\java
    X Cannot execute C:\Program Files\Java\jdk-16\bin\server\bin\java to determine the version

  • java version :- 16.0 jdk
  • android studio version :- 4.2.1
  • flutter version:- 2.2.1
Spatz
  • 18,640
  • 7
  • 62
  • 66
Minky Tiny
  • 71
  • 1
  • 2

2 Answers2

3

Go to C:\Program Files\Android\Android Studio, then copy the contents of jbr and paste the contents into the jre folder. It solve both problem

  • Cannot execute C:\Program Files\Java\jdk-19\bin\bin\java to determine the version
  • unable to find bundled java version
2

You have to set the JDK path to the system environment variable from your device. Please follow the instruction given for setting the path. Please don't use Java_home or any small letter. follow the instruction strictly. And also don't need to put variable location till bin.

  1. Go to System variable
  2. create a new variable called JAVA_HOME
  3. Variable value as C:\Program Files\Java\jdk-16.0.2
  4. Go to system variable name PATH 5.Click to edit and add a new variable call %JAVA_HOME%\bin

If not understood please follow: https://javatutorial.net/set-java-home-windows-10

Shegufa
  • 21
  • 2