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
0 answers

Best way to handle duplicate entry error

I'm trying to use Appium in my android studio project so I had to create a new test package and I had to add a new library in my dependencies for Appium: dependencies { compile 'io.appium:java-client:1.0.1' ... } And after that, when I…
Alex DG
  • 1,859
  • 2
  • 22
  • 34
3
votes
1 answer

Unity 2019 - Unable to Enable MultiDex Support

I am trying to build on Unity 2019.4.0 but the failed stating that Cannot fit requested classes in a single dex file (# methods: 68231 > 65536) The solution for this is to enable multiDex I have done that by following the below…
Jawad Amjad
  • 2,532
  • 2
  • 29
  • 59
3
votes
0 answers

Unity Android: Error while generating the main dex list

I have upgraded my Google Play Services to 0.9.53 and I have not been successful with my builds with both Unity 2017.4.27f1 and Android Studio 3.4.1. I have tried a lot of methods but I can't seem to find a solution. Using Android Studio, I received…
3
votes
0 answers

Android Error: Type com.google.android.gms.common.internal.zzf is referenced as an interface from `com.google.android.gms.internal.zzcms`

I am trying to retrieve the previous android project (maybe from eclipse) and there're tons of errors at first but I've got 4 errors eventually: Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process…
Dave Lee
  • 316
  • 3
  • 9
3
votes
1 answer

Flutter enable multiDex for SDK less than 21

How can I enable multiDex for SDK less than 21. This page shows how to do it, but it says for API less 21. If you do override the Application class, change it to extend MultiDexApplication (if possible) as follows: public class MyApplication…
user6274128
3
votes
2 answers

Is Android Gradle Plugin test apk builder automatically multidexing my test apk? If so, why is this generating "NoSuchMethodError"

This all started with this error when running instrumentation tests: java.lang.NoSuchMethodError: No static method closeQuietly(Ljava/net/ServerSocket;)V in class Lokhttp3/internal/Util; or its super classes (declaration of 'okhttp3.internal.Util'…
tir38
  • 9,810
  • 10
  • 64
  • 107
3
votes
3 answers

Failed to resolve: multidex-instrumentation

Whilst implementing multidex I'm encountering the following error whenever I sync my project. Failed to resolve: multidex-instrumentation I used these instructions to set it up. Here is the relevant app-level build.gradle: android { …
Nathanael
  • 954
  • 3
  • 19
  • 39
3
votes
1 answer

Google Maps Didn't find class "com.google.android.gms.dynamic.zza"

I've been following this tutorial on implementing google maps android sdk and reached the error mentioned in the title. Crash details available at the end of this question. I've been following a lot of SO threads with no result. So far, some google…
ariefbayu
  • 21,849
  • 12
  • 71
  • 92
3
votes
2 answers

Cannot create android app from an archive \app\libs\appodeal-2.1.11.jar' containing both DEX and Java-bytecode content

I am trying to add appodeal jar file to my project, but this error occurs: Cannot create android app from an archive app\libs\appodeal-2.1.11.jar' containing both DEX and Java-bytecode content Also android.enableD8=false not works. I am using…
Mr. Nobody
  • 327
  • 2
  • 8
  • 21
3
votes
4 answers

DexOverflowException: Cannot fit requested classes in the main-dex file

I have quite big multi module, multi flavor multidex project, but recently I got error when trying to do command line build (assemble{flavor}Release) Message is: DexOverflowException: Cannot fit requested classes in the main-dex file Here is more…
3
votes
3 answers

androidx and support dependency causing multidex error

I have a library project which is using androidx dependency in it. implementation 'androidx.appcompat:appcompat:1.0.0-rc01' After adding library project in my app, i am getting multiple errors related to dexMerger , MultiDex , Multiple dex files…
3
votes
7 answers

Cannot resolve symbol 'MultiDex'

I'm trying to enable MultiDex. I added multiDexEnabled true and compile 'com.android.support:multidex:1.0.3' to build.gradle. I made a java file public class ApplicationClass extends Application { @Override protected void…
3
votes
1 answer

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.crashlytics.android.beta.Beta" on path: DexPathList

For the issue I have tried many solutions in many ways but wasn't able to solve.I have made my project as multidex enabled and application extends by MultiDexApplication. There is java.lang.NoClassDefFoundError: Failed resolution of:…
3
votes
1 answer

java.lang.NoClassDefFoundError: Failed resolution of: App class on Lenovo K4 Note running android 6, API 23

GroupingHelper is a class defined in the helper package of the app itself and is not coming from a third party library. Still, GroupingHelper is not found at runtime and I am getting the following crash: --------- beginning of crash 05-08…
3
votes
2 answers

Unable to merge DEX in Android Studio 3.0.1 even after enabling multidex

I have a problem in my android project. I recently upgraded from lower version and then rebooted my OS with Linux. My project was working fine. But, now as I have compiled, it shows unable to merge dex. I tried : putting enable; multiDexEnabled…
JustABeginner
  • 785
  • 2
  • 11
  • 26