You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "breautek (via GitHub)" <gi...@apache.org> on 2023/09/12 20:59:18 UTC

[GitHub] [cordova] breautek added a comment to the discussion: Trying to build app on a vps

GitHub user breautek added a comment to 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 documentation for that.

GitHub link: https://github.com/apache/cordova/discussions/432#discussioncomment-6983216

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org