遇到问题
cordova Android target: not installed
错误信息:
Android target: not installed
cmd: Command failed with exit code 1 Error output:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
A: 提示SDK有,但是Android target没有。需要配置Android环境变量。如果相对路径不行的话,Path中值换成绝对路径。
B: 版本不兼容。安装特定版本的Android版本。参考:Cordova+Crosswalk打包WebApp时遇到的各种坑 其中“2.Android target: not installed”一节。
Android target: not installed – JDK不兼容问题
错误信息:
Android target: not installed
Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
Gradle: not installed
Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: E:\Sdk\tools\templates\gradle\wrapper
(node:776) UnhandledPromiseRejectionWarning: CordovaError: Some of requirements check failed