GitHub user breautek edited a comment on the discussion: Trying to build app on a vps
I don't think JDK 19 will work, JDK 11 is what is required by the AGP 7, which is what cordova-android@12 currently uses. That *might* be the cause of the gradle failure. Since you're operating on a VPS, I assume you're operating headless. The fact that you have no android targets installed, nor `avdmanager` is on your `PATH` might also be the reason. If android cmdline-tools is on your path, often it will just download/install the requirements needed to build the project, otherwise you'll need to install them yourself. See the [docs](https://cordova.apache.org/docs/en/11.x/guide/platforms/android/index.html#setting-environment-variables) for what is recommended to set to your `PATH` environment variable. Some of these will require using the SDK Manager tool to install the packages, which I'm honestly not sure how to do since the SDKManager itself comes from `cmdline-tools`, which is normally installed through the SDK Manager. You may need to consult the android studio documentation for that. GitHub link: https://github.com/apache/cordova/discussions/432#discussioncomment-6983216 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
