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
17
votes
4 answers

Why does use of multiDexEnabled (true) allow the app to build but constantly crash?

An app I am working on (base code not written by me, containing a number of large libs which can't be removed). On a recent run it started responding with the message: This only occurs when the app tries to build when using the run arrow, it…
Luke
  • 1,077
  • 13
  • 33
17
votes
2 answers

VM has multidex support, MultiDex support library is disabled

I'm getting the following error. FATAL EXCEPTION: main VM with version 2.1.0 has multidex support install VM has multidex support, MultiDex support library is disabled. install VM has multidex support, MultiDex support library is…
Anil
  • 1,748
  • 8
  • 32
  • 67
16
votes
10 answers

Multidex installation failure

I'm using CircledImageView library. It works fine on lollipop+ android versions. But in kitkat it's crashing. So after searching on google. I found that i have to implement multidex in my app. So this my application class. public class FireApp…
Doge
  • 853
  • 11
  • 35
15
votes
9 answers

E/LoadedApk: Unable to instantiate appComponentFactory only on Android Q (API 29)

I have searched everywhere about this and still have no solution. The gradle has minSdkVersion 21 and targetSdkVersion 29 I got error only in API 29, then the app doesn't load and show up blank screen. When i see logcat it gives an error like this…
Erwin Kurniawan A
  • 958
  • 2
  • 9
  • 17
14
votes
4 answers

App requires Multidex support in flutter?

I'm getting this error while building my app in Flutter. it seems the problem that the multidex is not enabled even though I did everything needed to enable it. this the error FAILURE: Build failed with an exception. * What went wrong: Execution…
abdalrahman alenzi
  • 159
  • 1
  • 1
  • 6
14
votes
0 answers

I got runtime exceptions in my android studio:"Fail to get file list and NullPointerException" after adding MultiDex

I add dependency implementation 'com.android.support:multidex:1.0.3' and defaultconfig multiDexEnabled = true In my app gradle file, now my build apk processed successfully but when I run the application I got error in logcat: 2020-03-23…
14
votes
3 answers

Which package for MultiDexTestRunner? android.support.multidex or com.android.test.runner

The page http://developer.android.com/tools/building/multidex.html#testing advises dependencies { compile 'com.android.support:multidex:1.0.1' androidTestCompile 'com.android.support:multidex-instrumentation:1.0.1' } android { …
pzulw
  • 1,716
  • 15
  • 22
13
votes
6 answers

Didn't find class “androidx.multidex.MultiDexApplication” on path: DexPathList on lower API <= 19 devices

I'm trying to add Multidex support to my app. But I get an error: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo: java.lang.ClassNotFoundException: Didn't find class "androidx.multidex.MultiDexApplication" on path:…
Vladyslav Panchenko
  • 1,517
  • 1
  • 19
  • 23
13
votes
10 answers

Error: Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat

After upgrading to Android Studio 3.1, I started to get following error during build. Project uses multidex and DX is enabled by default as you would notice in the error. I tried to check dependency graph to understand what is going on but so far…
Orhan Obut
  • 8,756
  • 5
  • 32
  • 42
13
votes
1 answer

Use multiDexEnabled without Gradle but Eclipse build process instead

Since the latest SDK version, its much more simple to create applications with multiple dex files ( https://developer.android.com/tools/building/multidex.html ), my question is, can this new feature also be used when I'm not using Gradle for the…
Simon
  • 13,173
  • 14
  • 66
  • 90
12
votes
4 answers

Could not find multidex.jar (com.android.support:multidex:1.0.2)

Could not find multidex.jar (com.android.support:multidex:1.0.2). Searched in the following locations: https://jcenter.bintray.com/com/android/support/multidex/1.0.2/multidex I have just installed latest version of Android Studio 3.1.3 When i…
Arpit
  • 297
  • 1
  • 5
  • 13
12
votes
2 answers

My newly released app can't be installed: Error code: -504

I just released my app to the Google Play Store, and the signed apk was published successfully. However, (and I've tried this on three different phones and tablets), the app refuses to install when downloaded from the store. After clicking the…
Aphex
  • 7,390
  • 5
  • 33
  • 54
12
votes
4 answers

Android studio java.lang.NoClassDefFoundError: android.support.v4.app.NavUtilsJB

This is my error log acheived with android studio 1.0.2 02-03 13:05:23.831 8385-8385/com.******.*******E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.support.v4.app.NavUtilsJB at …
Alpha
  • 1,754
  • 3
  • 21
  • 39
12
votes
3 answers

Enable `--multi-dex` option in ant for Android

It's easy to enable multi-dex option for gradle build system, but I haven't found example how I can enable this option for ant building. How can archive this?
Nickolai Astashonok
  • 2,878
  • 3
  • 20
  • 23
11
votes
2 answers

Too many field references: 70613; max is 65536

My project uses these plugins: OneSignal GooglePlayServices Adjust Google Analytics Unity IAP Facebook SDK Those plugins are used in almost every project. But I am over field references count This is my .aar file list What should I do to…
Kerem Bekman
  • 1,281
  • 2
  • 13
  • 24
1 2
3
47 48