我已閱讀StackOverflow中的文章this in backendless和this和this。但對我來說沒有任何幫助。我到處找,但在建去除compile 'com.mcxiaoke.volley:library:1.0.18'
當沒有任何solution.The錯誤波紋管錯誤:android + volley庫中的任務':app:transformClassesWithJarMergingForDebug'的執行失敗
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/android/volley/VolleyError;
在的build.gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.3.1'
androidTestCompile 'com.mcxiaoke.volley:library:1.0.18'
compile project(":volley")
compile 'com.mcxiaoke.volley:library:1.0.18'
}
此錯誤將消失.gradle。
我需要做的是傳遞應用程序和服務器(本地主機)內的數據。傳遞字符串我使用JSON。在Android應用程序中使用Volley庫。
我會錯過什麼?謝謝
請提供[mcve]。這將包括'build.gradle'文件,或者至少是所有的'dependencies',都會觸發這個構建錯誤。另外,請詳細解釋**「什麼JSON不像以前完成流動」的意思。 – CommonsWare
我編輯了我的問題並感謝您的關注@CommonsWare –
爲什麼你有一個Volley庫模塊*和*過時的依賴關係?使用官方依賴而不是這兩者。 – CommonsWare