Questions tagged [android-multidex]

Multidex is an Android technology that splits the classes of an Application (and its dependencies) into multiple dex files. (Dex being the format of the classes for the Dalvik/ART VM). Multidex is a workaround the 65 k maximal methods count inside a dex file.

Multidex is an Android technology that splits the classes of an Application (and its dependencies) into multiple dex files. (Dex being the format of the classes for the Dalvik/ART VM). Multidex is a workaround the 65k maximal methods count inside a dex file.

Package Summary

Features

Note that multidex is built-in in Art (Android SDK 5, Lollipop) and is also part of the support libraries

720 questions
4
votes
1 answer

Android Studio 3.1: StackOverflowError when executing task transformClassesWithDexBuilderForDebug when using qoppapdf library

With the update to Android Studio 3.1 our apps' builds started breaking randomly on all machines. On my machine the build breaks with a StackOverflowError during the dexing process. When d8 and desugaring are disabled in gradle.properties the builds…
4
votes
1 answer

Multidex Could not find class

As I have reached the 64K Methods limit I have activated Multidex in my app. I'm testing on 2 different devices: Samsung Galaxy S7 (API 24) Alps A733 (API 19, Google Services not up to date) Everything works find on the first one but on the second…
Eselfar
  • 3,759
  • 3
  • 23
  • 43
4
votes
3 answers

Execution failed for task ':app:transformClassesWithMultidexlistForDebug' Duplicate Zip Entry

I am getting the below error all of a sudden. The app was running fine till morning. Since then I have been getting this. I tried loading older commits from Git, however I am getting the same issue now. I can see that there's a duplicate entry of…
4
votes
1 answer

NoClassDefFoundError when running Espresso tests on Firebase

I've got a suite of instrumentation tests that are meant to be run using the Firebase Test Lab on various physical devices from Android 4.4 through 8. I can successfully run these tests locally on any OS version as well as on newer devices in the…
Nick
  • 8,181
  • 4
  • 38
  • 63
4
votes
0 answers

Multidex error on Android studio 3.0 [Multiple dex files define Lnet/sourceforge/zbar/SymbolSet]

Before updating the Android Studio to version 3.0.1 I never faced dex merge error. After I updated to 3.0.1, I started facing the following error Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. >…
4
votes
1 answer

BuildConfig multiple dex files error (Gradle 3.0.1)

My project has multiple modules and one module has a requirement to keep the package name same as "app" module. When I compile the project and run it runs just fine but when I am trying to build release APK it is showing below error : Error:Error…
4
votes
3 answers

Unable to merge dex in android studio 3.0.1 with latest gradle

So I have tried to add the multidexenabled to my build.gradle file, invalidate caches and restart, clean project and build project and deleting all gradle cache folders. Can anyone see anything wrong with my gradle file? Here is my exact…
user2815879
4
votes
1 answer

How can I disable MultiDex in Android Studio?

I know how to enable MultiDex support, but my problem is the opposite. Seems like my Android Studio's MultiDex option is enabled by default for some reason. When I unziped the resulting APK file and checked inside, there were two files. classes.dex…
Jenix
  • 2,996
  • 2
  • 29
  • 58
4
votes
0 answers

What is linear allocation?

When I read https://developer.android.com/studio/build/multidex.html to understand what and how to work with multidex, I don't understand the meaning of linearalloc: When running on versions prior to Android 5.0 (API level 21), using multidex is…
Vinh Nguyen
  • 610
  • 7
  • 16
4
votes
1 answer

Android studio 3.0 beta 3.2 canary: Multiple dex files define Lcom/google/android/gms/internal/zzasy;

I update android-studio 3.0 from canary 6 to beta 3.2 and suddenly it stop throwing multiple dex issue. And I have already handled multiple dex configuration according to this link: https://developer.android.com/studio/build/multidex.html Also…
user3606902
  • 829
  • 1
  • 10
  • 25
4
votes
0 answers

multidexing a react-native app... madness

I’m trying to make sense of the madness that is android versioning / multidexing / etc because currently my app is broken. So for various reasons I have decided to only support android 5.0 (API 21 / LOLLIPOP …argh! why are there 3 names for it!?)…
pomo
  • 2,251
  • 1
  • 21
  • 34
4
votes
1 answer

Running a Multidexed Espresso .APK

When running Espresso tests with ./gradlew connectedDebugAndroidTest, we're having this issue: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: …
Roc Boronat
  • 11,395
  • 5
  • 47
  • 59
4
votes
1 answer

Getting MultiDex Error, even after setting Min SDK 21

The project i am working on has around 180k Methods. I have read blogs, and articles where its written that if you set your Min SDK to 21, then you don't need MultiDex. But if i remove MultiDex from here it gives me the 65k MultiDex error message.…
dev90
  • 7,187
  • 15
  • 80
  • 153
4
votes
1 answer

Unable to generate signed apk with proguard

I'm getting the following error when I'm trying to generate a signed apk with proguard enabled. Error:Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstMethodRef cannot be cast to…
4
votes
0 answers

Error while compiling multidex library after updating SDK

I am pretty new to Android Studio. I have converted my Eclipse project to Android Studio successfully. everything worked fine, until today I updated my SDK and suddenly it started giving me error > Error: A problem occurred configuring project…
V-rund Puro-hit
  • 5,518
  • 9
  • 31
  • 50