2015-05-29 70 views
0

錯誤:執行任務':app:dexDebug'失敗。錯誤:執行失敗的任務':app:dexDebug'.....'以非零退出值結束2

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2

我讀了一些建議,我嘗試所有的人,但我仍不能problem.Plz幫助

這裏相依 - >

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:appcompat-v7:22.1.1' 
compile files('libs/google-play-services.jar') 
compile files('libs/Parse-1.3.2.jar') 
compile files('libs/Parse-1.6.0.jar') 

}

+0

爲什麼要引用Parse.jar兩次? – Joseph

回答

0
  1. 刪除一個Parse.jar(Android工作室不知道哪個版本更喜歡)

  2. compile 'com.google.android.gms:play-services:7.5.0'

代替

compile files('libs/google-play-services.jar')

如谷歌服務包含資源的文件,因此,它們不能僅通過一個.jar進口

  • 刪除compile fileTree(dir: 'libs', include: ['*.jar'])因爲你不想編譯所有,在libs中是什麼。
  • 相關問題