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

   You likely have `$ANDROID_HOME/tools`  in your path which are the java 8 
tools and that's where the java 8 requirements come from.
   
   You can use `which avdmanager` to confirm which `avdmanager` you're 
hitting/using. The `which` command should be available for mac/linux, not sure 
about windows. But it's a command to simply print the path to the executable.
   
   The SDK Manager has a `cmdline-tools` package, which contains newer versions 
of these tools when installed, it will be located in 
`$ANDROID_HOME/cmdline-tools/<cmdline-tools_version>/bin`. You'll want to add 
this path to your `PATH` environment variable. These tools supports java 11+.  
I'm currently using version 9, but the latest probably works too.
   
   While you're in the SDK manager, you can also uninstall `Android SDK Tools 
(Obsolete)` which is the `$ANDROID_HOME/tools` stuff.
   
   You may also want to set other PATHs too..., see the [Android Setup 
Guide](https://cordova.apache.org/docs/en/dev/guide/platforms/android/index.html#setting-environment-variables)
 (dev docs but it's more relevant than the current docs, atm)
   
   Closing as not a bug.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to