0
先生請幫助我,我的排球錯誤而運行凌空Android的錯誤,同時運行
這是我的logcat 錯誤:執行失敗的任務「:應用程序: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;
,這是我的應用程序模塊的gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.kalasubaindonesia.kalasubaindonesiamekanik"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.1'`enter code here`
compile files ('libs/volley1019.jar') // i use offline volley
}
如何解決呢?謝謝
謝謝米哈爾 –
如果它幫助,請接受我的答案。謝謝。 –
我是新手在這裏stackoverflow michal hehe –