簡體   English   中英

android:錯誤:任務':app:dexDebug'的執行失敗

[英]android : Error:Execution failed for task ':app:dexDebug'

運行項目時出現以下錯誤:

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2

在運行良好之前。

我正在嘗試集成Android異步Http客戶端

該頁面說要集成以下行:

dependencies {
  compile 'com.loopj.android:android-async-http:1.4.9'
}

因此,我生成的build.gradle是:

...
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.github.johnkil.android-robototextview:robototextview:2.4.0'
    compile 'com.android.support:design:23.0.1'
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile 'com.github.clans:fab:1.6.0'
    compile 'com.cocosw:bottomsheet:1.+@aar'
    compile 'com.android.support:cardview-v7:23.0.1'
    compile 'com.android.support:recyclerview-v7:23.0.1'
    compile 'org.igniterealtime.smack:smack-android:4.1.3'
    compile 'org.igniterealtime.smack:smack-bosh:4.1.3'
    compile 'org.igniterealtime.smack:smack-tcp:4.1.3'
    compile 'org.igniterealtime.smack:smack-im:4.1.3'
    compile 'org.jxmpp:jxmpp-jid:0.5.0-alpha6'
    compile 'org.igniterealtime.smack:smack-extensions:4.1.3'
    compile 'com.android.support:support-v4:23.0.1'
    compile files('libs/volley-1.0-SNAPSHOT.jar')
    compile project(':emoji')
    compile "com.google.android.gms:play-services:7.8.0"
    compile 'com.loopj.android:android-async-http:1.4.9'
}
...  

請幫幫我。

PS:我正在使用Android Studio 1.4 beta 4開發ubuntu15.0.4。Java版本是Oracle Java 8更新60。

只需更換

compile "com.google.android.gms:play-services:7.8.0"

compile 'com.google.android.gms:play-services-gcm:7.8.0'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM