1
我正在用Apache Cordova製作一個Android應用程序。一切都很好,直到構建開始崩潰。正如另一個線程在這裏建議的,我重新安裝了我正在使用的Apache Cordova插件(媒體)。在MSDN,有人通過刪除C:/Users/MyName/.gradle找到了幫助,並關閉了防火牆,所以java會再次下載一些東西。在那裏,我得到了下載後出現故障:Apache Cordova:構建失敗錯誤代碼1和Javascript異常
......
:compileDebugRenderscript UP-TO-DATE
1> :generateDebugBuildConfig UP-TO-DATE
1> :generateDebugAssets UP-TO-DATE
1> :mergeDebugAssets FAILED
1>
1> FAILURE: Build failed with an exception.
1>
1> * What went wrong:
1> Execution failed for task ':mergeDebugAssets'.
1> > java.lang.NullPointerException (no error message)
1>
1> * Try:
1> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1>
1> BUILD FAILED
1>
1> Total time: 3 mins 11.981 secs
1> Picked up _JAVA_OPTIONS: -Xmx512M
1>
1> C:\Users\Paul\Documents\Visual Studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\cordova\node_modules\q\q.js:126
1> throw e;
1> ^
1> Error code 1 for command: cmd with args: /s /c ""C:\Users\Paul\Documents\Visual Studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\gradlew" cdvBuildDebug -b "C:\Users\Paul\Documents\Visual Studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\build.gradle" -Dorg.gradle.daemon=true"
1> Command finished with error code 1: cmd /s /c ""C:\Users\Paul\documents\visual studio 2015\Projects\LifePointCounter\LifePointCounter\platforms\android\cordova\build.bat" --debug "--buildConfig=C:\Users\Paul\documents\visual studio 2015\Projects\LifePointCounter\LifePointCounter\build.json""
1>ERROR building one of the platforms : error : cmd: Command failed with exit code 1
1> You may not have the required environment or OS to build this project
1>MDAVSCLI : error : cmd: Command failed with exit code 1
過去的事情我之前做過這個錯誤想出了:
- 改變某些資源的音頻文件(後來打他們給了在運行時錯誤)
- 卸載我的應用程序我的設備上(通過建立重新安裝)
我不知道發生了什麼事情在那裏,我不是很與exceperienced。
編輯:
另一個線程建議的Node.js至0.10.36版本 現在,我得到退出代碼爲8,只有一個錯誤>。 <
非常感謝!當我在其他PC上建立我的代碼時,我有'mergeDebugAssets失敗'問題和'cordova clean'的幫助。 – FriendsKenny