breautek commented on issue #1488: URL: https://github.com/apache/cordova-android/issues/1488#issuecomment-1242985833
> That error is typically what happens if you try to run an application targeted at Java 8 on something like Java 11 or newer. So my best guess is that apkanalyzer isn't Java 11 compatible(?) The Android SDK includes old binaries (Which are java apps) that only work on Java 8. Java 11 compatible binaries are available in a separately installed command line package, which can installed from the Android SDK Manager. After installing the package, you should see a folder called `cmdline-tools` in your $ANDROID_HOME folder. You'll need to ensure that `$ANDROID_HOME/cmdline-tools/<version>/bin` is in your `PATH` environment variable. You should also remove the older `$ANDROID_HOME/tools` folder, which contains binaries that requires java 8. For the cmdline-tools version, the folder will be the version you installed, or `latest` if you install the `(latest)` package. Let me know if this helps and solves your issue or not. -- 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]
