2017-06-02 241 views
0

,當我們試圖運行Android它總是在科爾多瓦給錯誤上新創建的項目科爾多瓦 - 錯誤:CMD:命令失敗,退出代碼1

D:\Android\Theplug>cordova run android 
ANDROID_HOME=D:\Android\android-sdk-windows 
JAVA_HOME=C:\Program Files\java\jdk1.8.0_111 
The system cannot find the path specified. 
Error: cmd: Command failed with exit code 1 

科爾多瓦要求:

Requirements check results for android: 
Java JDK: installed 1.8.0 
Android SDK: installed true 
Android target: installed Google Inc.:Google APIs:24,Google Inc.:Google APIs:23, 
Google Inc.:Google APIs:22,Google Inc.:Google APIs:21,android-25,android-24,android-23, 
android-22,android-21 
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle 
+0

'java -version'有效嗎? –

+0

@suraj是它的工作正常 –

回答

3

剛剛降級您的Android版本,以5


cordova platform rm android 

然後

cordova platform add [email protected]~5 

它爲我工作。

相關問題