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
7
votes
3 answers

Execution failed for task ':app:shrinkReleaseMultiDexComponents'

I am getting following error when generating signed apk in Android Studio. :app:shrinkReleaseMultiDexComponents FAILED Error:Execution failed for task ':app:shrinkReleaseMultiDexComponents'. > java.io.IOException: The output jar…
Ravi
  • 34,851
  • 21
  • 122
  • 183
7
votes
2 answers

Twitter Fabric +MultiDex causes NoClassDefFoundError

I have enable Multidex support in my project and it was working fine on Android 5.0 and above, But when I started testing my app with Android 4.3 and below it start giving me NoClassDefFoundError for TwitterConfig. I can't disable my Multidex…
7
votes
1 answer

Android ProGuard +MultiDex causes ClassNotFoundException

I have MultiDex enabled in my android project. It was working fine until I tried enabling proguard. I can successfully build the project but I get runtime exception on startup. It's unable to find the Application class and the MainActivity. I had…
7
votes
1 answer

Android: SugarORM and multidex

I'm working with Android project that uses SugarORM. Now the method limit has increased so much that I have to activate multidex support. But now I have a problem with SugarORM, it creates only the tables that are in classes.dex file. It seems to…
JariA
  • 71
  • 3
6
votes
1 answer

Android R8 Error after updating dependencies

I have updated all of my project dependencies and I'm getting different Errors of R8. AGPBI: {"kind":"error","text":"java.lang.NullPointerException","sources":[{}],"tool":"D8"} org.gradle.workers.WorkerExecutionException: There was a failure while…
Nisar Ahmad
  • 1,987
  • 3
  • 13
  • 30
6
votes
2 answers

Can't import MultiDexApplication

I have an app built with react native and I need to enable MultiDexsupport. My problem is that I can't import the MultiDexApplication class to extend it because at compile time I get symbol not found error for both the import statement and the class…
Adrian Pascu
  • 949
  • 5
  • 20
  • 48
6
votes
0 answers

Didn't find class "com.example.android.App" on path: DexPathList on Android 4

I have Kotlin MultiDex application using Dagger 2 for DI. Everything almost fine, but I have device with API 17 (Android 4.2.2), and sometimes application crashes immediately after launch with exception java.lang.RuntimeException: Unable to…
6
votes
2 answers

MultiDexApplication class in secondary dex file not found when using AndroidX

I'm using 'androidx.multidex:multidex:2.0.0' and I'm pointing to the MultiDexApplication class from the manifest using:
bplpu
  • 464
  • 4
  • 21
6
votes
1 answer

ClassNotFoundException- .BaseDexClassLoader.findClass

I am facing ClassNotFoundException in production build. Please find below exception logs. java.lang.RuntimeException: at android.app.LoadedApk.makeApplication (LoadedApk.java:578) at android.app.ActivityThread.handleBindApplication…
6
votes
1 answer

Error:com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$HierarchyChangeListener

I have tried with these solutions - Solution 1 , Solution 2 Here are my gradle dependencies. dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //noinspection GradleCompatible implementation…
6
votes
3 answers

Build Failed - "Unable To Merge Dex"

I'm trying to build the project and I'm getting the following error: After running with --stackrace this is the error I get: and this is the log I get: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
Tal Barda
  • 4,067
  • 10
  • 28
  • 53
6
votes
1 answer

Android Fabric crashlytics causing app crash

I am getting a strange crash due to Fabric Crashlytics. I am using fabric's crashlytics. But When I run app on S5 5.0 API 21, it crashes the whole application. See the report below: java.lang.NoClassDefFoundError: Failed resolution of:…
6
votes
1 answer

Error converting bytecode to dex: Cause: default or static interface method used without --min-sdk-version >= 24

I'm getting the below error while trying to build a project in AS 3.0 canary 5. Any ideas what causes it? build.gradle: dependencies { compile 'com.google.dagger:dagger:2.11' compile 'com.google.dagger:dagger-android:2.11' compile…
Bogdan Zurac
  • 6,348
  • 11
  • 48
  • 96
6
votes
2 answers

Android Multidex support library is disabled

I'm experiencing some problem with multidex support in my app, in fact the app install normally, but through the process, some activities crashed and the app, relaunches the main activity. In logcat I found this : I/MultiDex: install I/MultiDex: VM…
Houssem
  • 2,069
  • 3
  • 27
  • 42
6
votes
1 answer

Android - Transform Classes With Multidexlist For Debug - Instagram JSON Parser

I'm trying to compile and deploy my Android App, but i have got an MultiDex issue : Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > java.lang.UnsupportedOperationException (no error message) I already tryed many…