breautek commented on issue #1511: URL: https://github.com/apache/cordova-android/issues/1511#issuecomment-1282435025
Android 4 is no longer a supported platform for Cordova. Most modern tooling doesn't work won't work at all, and installing old configurations will be a hit or miss, depending on required plugins and how they import dependencies. I'd recommend trying the following configuration: - Java 8 - cordova@10 - cordova-android@8 (The last version that supported Android 4.4) - Android Platform 19 - Android Build tools 29.0.2 And have the following paths set in your `PATH` environment variable (I'm using unix style variables because that's what I'm familiar with, you'll have to adapt them to windows): - `$ANDROID_HOME/tools` - `$ANDROID_HOME/tools/bin` - `$ANDROID_HOME/platform-tools` - `$ANDROID_HOME/build-tools/29.0.2` - `$JAVA_HOME/bin` (`JAVA_HOME` must be a Java 8 installation) Do **not** use `cmdline-tools`, they are intended to be used by Java 11 environments with modern Android SDK tooling. I don't know if they work as intended with Java 8. I'm closing this issue because this isn't a supported configuration, but if you have additional questions or still have trouble, feel free to ask our [Slack Community](https://join.slack.com/t/cordova/shared_invite/zt-z70vy6tx-7VNulesO0Qz0Od9QV4tc1Q). The community may have further ideas. -- 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]
