Hello, I'm trying to build an Android application using just one Ubuntu VPS per command line but I'm having problems, see below the error I receive; I was following the documentation
root@website:~/hello# cordova requirements
Requirements check results for android:
Java JDK: installed 19.0.2
Android SDK: installed true
Android target: not installed
Command failed with ENOENT: avdmanager list target
spawn avdmanager ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
Some of requirements check failed
root@website:~/hello# cordova build
Checking Java JDK and Android SDK versions
ANDROID_HOME=/root/android-sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: /usr/lib/android-sdk
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 20s
Command failed with exit code 1: /usr/share/gradle/bin/gradle -p /root/hello/platforms/android wrapper -b /root/hello/platforms/android/wrapper.gradle
root@website:~/hello#
Hello, I'm trying to build an Android application using just one Ubuntu VPS per command line but I'm having problems, see below the error I receive; I was following the documentation