breautek commented on issue #1707:
URL: 
https://github.com/apache/cordova-android/issues/1707#issuecomment-2073264542

   > JAVA_SDK error is due to Java 14 instead of Java 8.
   
   On modern tooling, JDK 11 is the minimum required version, though JDK 17 
would be recommended.
   
   You don't have the `ANDROID_HOME` environment variable defined, therefore 
cordova has to guess where your android SDK is installed. It's usually better 
if this is explicitly defined. Based on your output it looks like it's located 
at `C:\Users\ASUS\AppData\Local\Android\Sdk`
   
   If have an opened command prompt/powershell, they will need to be re-opened 
after changing environment variables. Environment variables are loaded only 
when they are opened and will not automatically receive environment variable 
updates.
   
   There is a problem with cordova docs suggesting you to install the latest 
command-line tools, but the latest version requires JDK 17. So you either need 
to use JDK 17, or use command-line tools version 10.0, and uninstall any other 
versions that is installed.
   
   If you have the `Android SDK Tools (Obsolete)` installed, then I'd also 
recommend uninstalling that. Those are the tools that only run on JDK 8 and 
they won't work with modern Android SDKs or run modern Android emulator images.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to