mac 中 android 的 cordova 要求失败
cordova requirements fails for android in mac
我在 mac 中尝试了 Cordova android 设置。
使用以下命令添加了 android 平台
cordova platform add android@latest
但是当我发出 cordova 要求时它失败并出现以下错误。
Android Studio project detected
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
No android targets (SDKs) installed!
Gradle: installed /usr/local/Cellar/gradle/4.9/bin/gradle
Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed [object Object]
ios-deploy: installed [object Object]
CocoaPods: installed [object Object]
(node:85492) UnhandledPromiseRejectionWarning: CordovaError: Some of requirements check failed
at /usr/local/lib/node_modules/cordova/src/cli.js:414:27
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
at process._tickCallback (internal/process/next_tick.js:61:11)
(node:85492) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:85492) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我有最新的 cordova 和 android sdk(它只有工具文件夹)。
运行 和构建在 ios 上完美运行,但在 android 上失败。你能帮我解决这个问题吗?提前致谢。
从 android studio 安装 android 版本 27 和 26 后它工作了。
我在 mac 中尝试了 Cordova android 设置。
使用以下命令添加了 android 平台
cordova platform add android@latest
但是当我发出 cordova 要求时它失败并出现以下错误。
Android Studio project detected
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
No android targets (SDKs) installed!
Gradle: installed /usr/local/Cellar/gradle/4.9/bin/gradle
Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed [object Object]
ios-deploy: installed [object Object]
CocoaPods: installed [object Object]
(node:85492) UnhandledPromiseRejectionWarning: CordovaError: Some of requirements check failed
at /usr/local/lib/node_modules/cordova/src/cli.js:414:27
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
at process._tickCallback (internal/process/next_tick.js:61:11)
(node:85492) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:85492) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我有最新的 cordova 和 android sdk(它只有工具文件夹)。
运行 和构建在 ios 上完美运行,但在 android 上失败。你能帮我解决这个问题吗?提前致谢。
从 android studio 安装 android 版本 27 和 26 后它工作了。