2015-03-25 61 views
1

我正試圖構建我的android應用程序。每次都會發生以下錯誤。Cordova構建錯誤 - Android

BUILD FAILED 
C:\Users\INTEL\android-sdks\tools\ant\build.xml:653: The following error occurre 
d while executing this line: 
C:\Users\INTEL\android-sdks\tools\ant\build.xml:698: null returned: 1 

Total time: 5 seconds 

C:\SocialNoiseApp\platforms\android\cordova\node_modules\q\q.js:126 
        throw e; 
         ^
Error code 1 for command: cmd with args: /s /c "ant debug -f C:\SocialNoiseApp\p 
latforms\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-gen" 
ERROR building one of the platforms: Error: C:\SocialNoiseApp\platforms\android\ 
cordova\build.bat: Command failed with exit code 1 
You may not have the required environment or OS to build this project 
Error: C:\SocialNoiseApp\platforms\android\cordova\build.bat: Command failed wit 
h exit code 1 
    at ChildProcess.whenDone (C:\Users\INTEL\AppData\Roaming\npm\node_modules\co 
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23) 
    at ChildProcess.emit (events.js:110:17) 
    at maybeClose (child_process.js:1008:16) 
    at Process.ChildProcess._handle.onexit (child_process.js:1080:5) 

我的環境變量有以下路徑:

C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.8.0_40\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\nodejs\node_modules\npm\bin;C:\Program Files (x86)\Skype\Phone\;C:\ant\bin;%ANDROID_HOME%/tools;%ANDROID_HOME%/tools;%ANDROID_HOME%/platform-tools 
+0

嘗試寫這三線在CMD 機器人, 螞蟻, 的javac, 看我任何人不能在地方工作 – 2015-03-25 07:12:25

+0

發現check_reqs.bat%USERPROFILE%\ .cordova並運行它,它應該會告訴你更多的細節。你怎麼建? – QuickFix 2015-03-25 16:23:20

回答

0

使用Eclipse或螞蟻 然後建立自己的科爾多瓦項目清理你的Android項目。希望這會爲你工作..