breautek commented on issue #391: URL: https://github.com/apache/cordova/issues/391#issuecomment-1516983016
> Now when I run it directly using gradle I get this: Unable to determine Android SDK directory. You may not have your `ANDROID_HOME` variable set. Cordova makes educated guesses and it's possible Cordova is guessing correctly but would be better to explicitly set your `ANDROID_HOME` however in your `.bashrc` file. You'll need to start a new terminal session for changes to apply. ``` export ANDROID_HOME="/path/to/android/sdk" ``` > General error during conversion: Unsupported class file major version 61 Means you're using Java 17 (which is file major version 61) . AGP 7.x, which is what cordova-android@11 uses requires Java 11. Would be best to use Java 11 for Cordova. `CORDOVA_JAVA_HOME` can be used to tell cordova where a JDK 11 installation is, while having JDK 17 for other things. As mentioned https://github.com/apache/cordova/issues/391#issuecomment-1516938133 one of the breaking changes of AGP 8 requiring JDK 17, so support for JDK 17 will be coming soon, but I'm not sure if it will be included in our next release since AGP 8 is only necessary for API 34, which will be in beta until summer of this year at the earliest. -- 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: commits-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org