Fixed
Status Update
Comments
xa...@android.com <xa...@android.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Android build
Which Android build are you using? (e.g. UQ1A.240205.002)
Device used
Which device did you use to reproduce this issue?
Are you reporting this as a Developer or User?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:https://developer.android.com/studio/debug/bug-report#bugreportdevice
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report to google drive and share the folder to android-bugreport@google.com, then share the link here.
Android build
Which Android build are you using? (e.g. UQ1A.240205.002)
Device used
Which device did you use to reproduce this issue?
Are you reporting this as a Developer or User?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report to google drive and share the folder to android-bugreport@google.com, then share the link here.
[Deleted User] <[Deleted User]> #3
Please provide the requested information to proceed further. Unfortunately the issue will be closed within 7 days if there is no further update.
je...@gmail.com <je...@gmail.com> #4
We are closing this issue since we didn't receive a response. If you are still facing this problem, please open a new issue and add the relevant information along with reference to this issue.
xa...@android.com <xa...@android.com> #5
@2 the only think you can do is manually edit the aar, and the classes.jar inside to remove the offending BuildConfig.class since it's not used anyway.
mb...@gmail.com <mb...@gmail.com> #6
@1 Is there a timeline on the fix for this?
as...@gmail.com <as...@gmail.com> #7
As a workaround you can remove multidex-instrumentation from dependencies, copy test runner to your app (https://android.googlesource.com/platform/frameworks/multidex/+/master/instrumentation/src/com/android/test/runner/MultiDexTestRunner.java ) and set new runner to testInstrumentationRunner in defaultConfig.
xa...@android.com <xa...@android.com> #8
The Android support repository now has version 1.0.1 of the multi-dex libraries. You'll need to manually add a dependency on them (since the plugin only adds a dependency on 1.0.0)
je...@gmail.com <je...@gmail.com> #9
I confirm this specific bug is fixed with v1.0.1. Thank you.
dr...@gmail.com <dr...@gmail.com> #10
Hi Devs,
I just moved to Android Studio because Eclipse build system does not support multidex solution.
but with android studio I am facing the same problem, Please guide me.
My build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.myapp.appname"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
}
dependencies {
compile project(':androidsupportmultidex')
compile files('libs/android-support-v13.jar')
compile files('libs/json-simple-1.1.1.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
}
ERROR:
* What went wrong:
Execution failed for task ':myapp:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/multidex/BuildConfig.class
Please Reply.
Thanks in advance.
I just moved to Android Studio because Eclipse build system does not support multidex solution.
but with android studio I am facing the same problem, Please guide me.
My build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.myapp.appname"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
}
dependencies {
compile project(':androidsupportmultidex')
compile files('libs/android-support-v13.jar')
compile files('libs/json-simple-1.1.1.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
}
ERROR:
* What went wrong:
Execution failed for task ':myapp:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/multidex/BuildConfig.class
Please Reply.
Thanks in advance.
go...@bodurov.net <go...@bodurov.net> #11
Hi,
I have the same problem, any updates?
Best Regards,
Gospodin Bodurov
I have the same problem, any updates?
Best Regards,
Gospodin Bodurov
[Deleted User] <[Deleted User]> #12
Anyone? Anything?
[Deleted User] <[Deleted User]> #13
Hi,
I have the same problem, any updates?
I have the same problem, any updates?
ka...@gmail.com <ka...@gmail.com> #14
Hello, it still has the same problem on Android Studio 1.2.2. Any update of the issue?
ca...@gmail.com <ca...@gmail.com> #15
same issue here!! is anybody out there?
an...@gmail.com <an...@gmail.com> #16
Have the same problem with android studio 1.2.2. Please update on this
[Deleted User] <[Deleted User]> #17
Make sure there are no duplicate library dependencies. Adding jar as well as maven dependency of same library can also cause this problem. Also make sure that even dependency modules should not contain same libraries.
um...@gmail.com <um...@gmail.com> #18
I have the same problem, any updates?
me...@gmail.com <me...@gmail.com> #19
Still the same issue on AndroidStudio 1.4 ... any timeframe for the solution??
ke...@brainvire.com <ke...@brainvire.com> #20
I am also facing same problem in Android studio 1.4.. any luck??
dr...@gmail.com <dr...@gmail.com> #21
Still facing the same issue after adding play_services-gcm in the dependencies. Any luck??
[Deleted User] <[Deleted User]> #22
I have also facing same issue when i import my existing project please find my greadle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.tentimes"
minSdkVersion 11
targetSdkVersion 21
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
}
}
}
/*configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}*/
dependencies {
compile project(':customAlert')
compile project(':facebookLib')
compile project(':rippleLib')
compile project(':swipeLibOld')
compile 'com.google.code.gson:gson:2.2.4'
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:+'
compile files('libs/Parse-1.5.1.jar')
compile files('libs/crittercism_v4_4_0_sdkonly.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/scribe-1.3.1.jar')
compile files('libs/universal-image-loader-1.9.2-SNAPSHOT-with-sources.jar')
compile files('libs/volley.jar')
compile 'com.android.support:support-v4:21.0.3'
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.tentimes"
minSdkVersion 11
targetSdkVersion 21
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
}
}
}
/*configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}*/
dependencies {
compile project(':customAlert')
compile project(':facebookLib')
compile project(':rippleLib')
compile project(':swipeLibOld')
compile 'com.google.code.gson:gson:2.2.4'
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:+'
compile files('libs/Parse-1.5.1.jar')
compile files('libs/crittercism_v4_4_0_sdkonly.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/scribe-1.3.1.jar')
compile files('libs/universal-image-loader-1.9.2-SNAPSHOT-with-sources.jar')
compile files('libs/volley.jar')
compile 'com.android.support:support-v4:21.0.3'
}
ml...@gmail.com <ml...@gmail.com> #23
[Comment deleted]
ml...@gmail.com <ml...@gmail.com> #24
For those who still having an issue - please check if some of your dependencies have multidex as dependency and exclude it. For example for Facebook SDK:
compile('com.facebook.android:facebook-android-sdk:+') {
exclude group: 'com.android.support', module: 'multidex'
}
compile('com.facebook.android:facebook-android-sdk:+') {
exclude group: 'com.android.support', module: 'multidex'
}
[Deleted User] <[Deleted User]> #25
When i want to compile into APK-release, i get the same problem in android studio but i can normally compile into debug version
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':XLegendLoginSDKSample:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/facebook/BuildConfig.class
apply plugin: 'com.android.application'
android {
signingConfigs {
DebugKeyStore {
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('D:/sysapi/xlsdksample_fake_debug.keystore')
storePassword 'android'
}
}
compileSdkVersion 21
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.xlegend.xlsdksample"
minSdkVersion 16
targetSdkVersion 24
multiDexEnabled true
}
lintOptions {
disable 'MissingTranslation'
}
buildTypes {
release {
enforceUniquePackageName = false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
signingConfig signingConfigs.DebugKeyStore
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile project(':xLegendLoginSDK')
compile project(':facebooksdk4140')
compile project(':googleplayservices_lib_940')
compile project(':twittersdk231')
}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':XLegendLoginSDKSample:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/facebook/BuildConfig.class
apply plugin: 'com.android.application'
android {
signingConfigs {
DebugKeyStore {
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('D:/sysapi/xlsdksample_fake_debug.keystore')
storePassword 'android'
}
}
compileSdkVersion 21
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.xlegend.xlsdksample"
minSdkVersion 16
targetSdkVersion 24
multiDexEnabled true
}
lintOptions {
disable 'MissingTranslation'
}
buildTypes {
release {
enforceUniquePackageName = false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
signingConfig signingConfigs.DebugKeyStore
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile project(':xLegendLoginSDK')
compile project(':facebooksdk4140')
compile project(':googleplayservices_lib_940')
compile project(':twittersdk231')
}
Description
The error is:
:apdm:packageAllArmDebugTestClassesForMultiDex FAILED
Error:Execution failed for task ':apdm:packageAllArmDebugTestClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/multidex/BuildConfig.class
The following is what I suspect are pertinent sections of my gradle.build
android {
compileSdkVersion 21
buildToolsVersion '21.1.1'
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
multiDexEnabled true
}
}
dependencies {
compile 'com.android.support:multidex:1.0.0'
androidTestCompile 'com.android.support:multidex-instrumentation:1.0.0'
androidTestCompile files('libs/espresso-1.1.jar')
androidTestCompile files('libs/espresso-contrib-1.1.jar')
androidTestCompile files('libs/testrunner-1.1.jar')
androidTestCompile files('libs/testrunner-runtime-1.1.jar')
}
stackoverflow ref:
./gradlew --version
------------------------------------------------------------
Gradle 2.2.1
------------------------------------------------------------
Build time: 2014-11-24 09:45:35 UTC
Build number: none
Revision: 6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a
Groovy: 2.3.6
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.7.0_51 (Oracle Corporation 24.51-b03)
OS: Mac OS X 10.10.1 x86_64