breautek commented on issue #1440: URL: https://github.com/apache/cordova-android/issues/1440#issuecomment-1146485440
That error looks consistent with using the legacy android tools with a java version > 8 Android SDK has two versions of tooling, one available at `$ANDROID_SDK_ROOT/tools/bin`, which are legacy tools and will not work with Java 11, only java 8. They have a newer package which can be installed via the SDK manager called `cmdline-tools`. Personally I'm using version 6 successfully, but I think any version of it works. Ensure that `$ANDROID_SDK_ROOT/cmdline-tools/<version>/bin/` is in your path. https://cordova.apache.org/docs/en/11.x/guide/platforms/android/index.html#setting-environment-variables contains some other potentially required environment variables or paths. -- 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]
