Estou a tentar utilizar o Cordova pela primeira vez mas nao estou a conseguir.
Já vi as directorias o ficheiro AndroidManifest.xml e o project.properties
No Android Studio já instalei os SDK Android para as plataformas 14, 16 e da 20 à 27.
Não sei o que fazer mais...
Este é o dá:
C:\Android\Cordova\hello>cordova requirements
Android Studio project detected
Requirements check results for android:
Java JDK: installed
Android SDK: installed true
Android target: not installed
cmd: Command failed with exit code 1 Error output:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annota
tion/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(Sc
hemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHa
ndler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinCla
ssLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(C
lassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 5 more
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-4.1\bin\
gradle
(node:6696) UnhandledPromiseRejectionWarning: CordovaError: Some of requirements
check failed
at C:\Users\julio\AppData\Roaming\npm\node_modules\cordova\src\cli.js:414:27
at _fulfilled (C:\Users\julio\AppData\Roaming\npm\node_modules\cordova\node_
modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\julio\AppData\Roaming\npm\node_module
s\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
ao adicionar o android:
*AndroidManifest.xml alterado apos "cordova platform add [email protected]"