Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
cordova对mac中android的要求失败_Cordova_Cordova Android - Fatal编程技术网

cordova对mac中android的要求失败

cordova对mac中android的要求失败,cordova,cordova-android,Cordova,Cordova Android,我试过在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 targ

我试过在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(它只有工具文件夹)


run and build在ios上运行得很好,但在android上却失败了。你能帮我修一下吗。提前感谢。

在从android studio安装了android版本27和26后,它起到了作用