2016-09-26 209 views
1

我設置基本angular2的應用程序,它運行良好iOS中,但與Android我得到建立與異常失敗了,我可以在一個基本的科爾多瓦應用程序運行Android精品。angular2科爾多瓦的Android未能在模擬器科爾多瓦運行

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/opt/android-sdk/build-tools/24.0.2/aapt'' finished with non-zero exit value 1 

Error: /Users/username/Code/workshop/cordova/angular-2/MyApp/platforms/android/gradlew: Command failed with exit code 1 Error output: 
FAILURE: Build failed with an exception. 
+0

我想知道是否有事情做與AVD沒有足夠的資源來推出,也許如果我增加可用的RAM,VM堆。 –

回答

0

確定我解決這是由node_modules夾太重仿真器推出,我砍從node_modules(即刪除依賴關係,並且並不需要其他絨毛)大量的脂肪引起的,增加了問題avd可用的資源。

東西跑後順利:)