GitHub user breautek edited a comment on the discussion: android target not 
installed with a gibberish message

The output comes from the avdmanager executable I believe, so it must be 
returning non-textual characters/data in it's stdout/stderr.

Does the same occur if you use Command Prompt?

It might be caused by having JDK 24 installed. Android SDK can be picky on the 
JDK and the ideal version is 17.

Another thing you can check is to ensure that `%ANDROID_HOME%/tools` **IS NOT** 
in your path. This is the legacy and obsolete command line tools and it 
requires JDK 8 to use. These tools and JDK 8 is not compatible with modern 
Android SDK versions. You can have JDK 17 installed along with JDK 24 by using 
`CORDOVA_JAVA_HOME` to point to the JDK 17 install.

The modern command line tools comes from the `Android SDK Command-line Tools` 
package, and I'd recommend installing version 19.0 and add 
`%ANDROID_HOME%/cmdline-tools/19.0/bin` in your PATH system variable. 
Alternatively you can also install the `latest` version as well, so you can 
update the package without needing to update your `PATH` variable.

![image](https://github.com/user-attachments/assets/17bfaacf-cfbc-498c-be10-7ecbbd94c0e5)

Full documentation can be found at: 
https://cordova.apache.org/docs/en/dev/guide/platforms/android/index.html

GitHub link: 
https://github.com/apache/cordova/discussions/532#discussioncomment-12654324

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.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