android-multidex

Duplicate class MultiDex$V14.class

浪子不回头ぞ 提交于 2020-07-09 06:54:18
问题 My Android gradle build is failing during the ProGuard phase with a duplicate class error for MultiDex$V14.class (see below). I understand what a duplicate class is and I know what MultiDex is but I still don't understand how it's a duplicate. Questions: I see one definition is in multidex.jar, of course. How can I tell where the other is defined? Isn't ProGuard supposed to remove duplicate entries instead of complaining about them? The "What went wrong" description at the bottom seems

Different android support versions in packages?

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-25 18:40:50
问题 I am trying to adapt the classytaxi app to androidx: I needed to get multidex activated (in the gradle file, the manifest had already a name field asigned to .SubApp in the application Tag, see manifest snippet). I get this error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl; [...] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList [...] according to that question, the

Different android support versions in packages?

断了今生、忘了曾经 提交于 2020-03-25 18:38:17
问题 I am trying to adapt the classytaxi app to androidx: I needed to get multidex activated (in the gradle file, the manifest had already a name field asigned to .SubApp in the application Tag, see manifest snippet). I get this error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl; [...] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList [...] according to that question, the

android library crash on start MultiDex

落花浮王杯 提交于 2020-01-16 18:49:10
问题 I've built an android library ( a custom button of sorts ) and uploaded it to my JFrog Artifactory now i tried testing it in an example app (really simple one with default activity) . The sync went well and I added the Button to the xml layout , when i run the app it crashes before it starting with : java.lang.RuntimeException: Unable to instantiate application com.mylib.library.LibApp: java.lang.ClassNotFoundException: Didn't find class "com.mylib.library.LibApp" on path: DexPathList Which

Error multiDex when updating Android Studio

孤街醉人 提交于 2020-01-16 00:44:20
问题 when i updating my android studio to 3.1.2 i got this error : java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList build.gradle android { compileSdkVersion 26 buildToolsVersion '27.0.3' defaultConfig { applicationId "com.example" minSdkVersion 19 targetSdkVersion 26 versionCode 1 versionName "1.0.0"

multidex - NoClassDefFoundError with multidex enabled

China☆狼群 提交于 2020-01-13 18:25:07
问题 My app is crashing on pre-21 with java.lang.NoClassDefFoundError app.module.SomeClass error. I already have Multidex enabled: build.gradle: android { defaultConfig { ... multiDexEnabled true } } dependencies { ... implementation "androidx.multidex:multidex:2.0.1" } My Application class: class App : DaggerApplication() { ... override fun attachBaseContext(base: Context) { super.attachBaseContext(base) MultiDex.install(this) } After reading about Declaring classes required in the primary DEX

Android - MultiDex Install

只愿长相守 提交于 2020-01-11 11:19:50
问题 I have exceeded the 65k method limit, by importing an external library. I have enabled ProGuard, but still get the same error. [2015-01-12 15:13:39 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536 [2015-01-12 15:13:39 - MyFirstGame] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 After reading the official Google documentation, it seems I should configure a MultiDex support. I am building my project using the Eclipse

Android - MultiDex Install

戏子无情 提交于 2020-01-11 11:18:12
问题 I have exceeded the 65k method limit, by importing an external library. I have enabled ProGuard, but still get the same error. [2015-01-12 15:13:39 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536 [2015-01-12 15:13:39 - MyFirstGame] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 After reading the official Google documentation, it seems I should configure a MultiDex support. I am building my project using the Eclipse

Android takes more time on application start up during first time launch

蓝咒 提交于 2020-01-09 10:02:43
问题 In my project, I have used libraries which require multidex support. Based on the research I did, I came to know that it causes delay during app start up. I have enabled multidex feature in gradle. defaultConfig { multiDexEnabled true } I used to get NoClassDefFound Exception for kitkat devices so I added the following: I have added application name in manifest as android:name="android.support.multidex.MultiDexApplication" and extended my application class with MultiDexApplication. I know any

Android takes more time on application start up during first time launch

我的未来我决定 提交于 2020-01-09 10:01:07
问题 In my project, I have used libraries which require multidex support. Based on the research I did, I came to know that it causes delay during app start up. I have enabled multidex feature in gradle. defaultConfig { multiDexEnabled true } I used to get NoClassDefFound Exception for kitkat devices so I added the following: I have added application name in manifest as android:name="android.support.multidex.MultiDexApplication" and extended my application class with MultiDexApplication. I know any