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
-1
votes
2 answers

Androidx migration getting DexArchiveMergerException: Unable to merge dex

I've migrated to androidx and after a ton of time with it, I can't move away from the error below. I've integrated multidex but I still get the error. This is the exception: FAILURE: Build failed with an exception. What went wrong: Execution…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
-1
votes
2 answers

Clarification on What happens after installing MultiDex

After I installed MultiDex I noticed,first ever launch of the app takes extra 4-5 seconds. However after a few researches, I noticed that the app size inside the phone settings(app manager) went from 7 MB to 19 MB and if I clear data, app goes back…
hossam scott
  • 466
  • 5
  • 28
-1
votes
1 answer

Android build gradle failing, Error app:transformClassesWithMultidexlistForDebug'

Error Log Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [D:\Android\testapp\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\Code…
-1
votes
2 answers

Android Studio "Unable to merge dex"

I keep getting this error. I cleaned everything, build, Rebuild, jumbomode, MultidexApplication I tried everything as possible I can, but everything didn't work out. Sometimes it is necessary to remove the dependency one by one, but now it is…
-1
votes
2 answers

ClassNotFoundException when referencing Kotlin classes

I try to start migrating a Java based multidexed project to Kotlin but I get ClassNotFoundException whenever the app tries to reference a Kotlin class. The weird thing is that the same code sometimes works sometimes it doesn't. There are computers…
guni
  • 312
  • 2
  • 9
-1
votes
1 answer

Issue of same jar in multiple aar and using to build into single android application

My scenario is like i'm using same jar in multiple aar and integrating into single project. How to avoid the jar duplication issue.Multiple dex files issue.
saranya
  • 228
  • 2
  • 11
-1
votes
1 answer

Error:Execution failed for task ':packageAllDebugClassesForMultiDex'. not regarding libs

Error:Execution failed for task ':packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: R$array.class Its not regarding lib dependencies how to fix this
hov.terteryan
  • 758
  • 6
  • 16
-1
votes
2 answers

Android - UNEXPECTED TOP-LEVEL EXCEPTION:

i am facing error while adding payumoney in app. Here is error - UNEXPECTED TOP-LEVEL EXCEPTION: `com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 at…
user6303614
-1
votes
1 answer

Why does the dex methods count add 3 when I add one method?

I add a method public static void cancelAll(RequestQueue queue,@NonNull final Object tag){ queue.cancelAll(new RequestQueue.RequestFilter() { @Override public boolean apply(Request request) { …
tiny sunlight
  • 6,231
  • 3
  • 21
  • 42
-1
votes
1 answer

Multidex Duplicate Entry

These are my dependencies: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:multidex:1.0.1' compile…
Puneet Kala
  • 150
  • 2
  • 11
-1
votes
2 answers

Multi dex eclipse android

when i tried to run it shows error as below,can anyone tell me how to configure multidex in eclipse Dx trouble writing output: Too many field references: 83958; max is 65536. You may try using --multi-dex option. References by package: 2…
-2
votes
2 answers

My multidex is not resolving (it is still red)

My android.support.multidex.MultiDexApplication is still red after all the steps. I am not able to resolve this. I'm following a course online but can't find the answer. Can I omit multidex? android { compileSdkVersion 28 buildToolsVersion…
-2
votes
1 answer

java.lang.ClassNotFoundException: Didn't find class ".MyApplication" on path: DexPathList[[zip file "/data/app/com.sampledemo.box8demo-1/base.apk"]

I have been trying to solve below issue from 3 days. Problem : Created new module as a library in android project and created aar file using assembleDebug. That aar file i have added in another project as a new module ( dependecies also added ) but…
-2
votes
1 answer

MultiDex Support

My app is crashing due to multidex. Below is the crash log information : 12-23 16:43:12.437 6823-6823/com.rogers.tsc I/MultiDex: VM with version 2.1.0 has multidex support 12-23 16:43:12.438 6823-6823/com.rogers.tsc I/MultiDex: install …
-2
votes
1 answer

Too much methods in main dex

i had modified the build.gradle file for configuring multidex also i had a study in the official documentation ,but the new problem is "Too much of methods in main dex" how to reduce the methods in main dex build.gradle apply plugin:…
1 2 3
47
48