android-multidex

Installing app takes minutes with dex2oat warnings

坚强是说给别人听的谎言 提交于 2019-12-10 16:29:14
问题 I have re-opened an Android Studio project after quite some time, and I'm seeing fast builds as usual, but now the "Install" step from Android Studio (3.5) is taking minutes, while it used to take seconds. If I open the device Logcat while installing, I can see a huge amount of these: W/dex2oat: Method processed more than once: void com.package.base.view.BaseDialog.onSaveInstanceState(android.os.Bundle) W/dex2oat: Method processed more than once: void com.package.base.view.BaseDialog

Using MultiDex in Android App runs ProGuard twice and only second time with Warnings/Notes?

好久不见. 提交于 2019-12-10 15:37:05
问题 I use MultiDex and ProGuard in my Android app. When I run my app it turns out that proguard runs twice. Here are the tasks after which proguard runs: :app:transformClassesAndResourcesWithProguardForRelease ProGuard, version 5.2.1 ... Initializing... Shrinking... Obfuscating... Writing output... and later: :app:transformClassesWithMultidexlistForRelease ProGuard, version 5.2.1 Here is my app's build.gradle file: buildscript { repositories { maven { url 'https://maven.fabric.io/public' } }

Build Failed: Program type already present: com.facebook.ads.Ad

浪子不回头ぞ 提交于 2019-12-10 13:56:53
问题 I try to build a module in Android Studio. It seemed to run on device but when I tried to build an APK, I got an error: Program type already present: com.facebook.ads.Ad Here's the complete log: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':NewApp:transformClassesWithMultidexlistForDevDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution

FlexJson ClassNotFound Exception on Android 4.4.4

穿精又带淫゛_ 提交于 2019-12-10 12:54:12
问题 I´ve got a multidex project for Android devices. I use Flexjson. I´ve already tested it with flexjson 3.3 and 2.x. It works perfectly well with android 5.x but crashes in Android 4.4.4. It looks like the Dex support library is not working propperly with older Android versions but I cannot tell. Here´s my stacktrace: 06-29 03:50:44.763 11884-11884/com.pigdroid.gameboard E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.pigdroid.gameboard, PID: 11884 flexjson.JSONException: [ layers.values ]

multiDexEnabled do not work

岁酱吖の 提交于 2019-12-10 11:24:34
问题 I have a rather large android project. The project still compiles, but when I try to compile tests I get an error: Execution failed for task ':app:dexDebugTest'. trouble writing output: Too many method references: 70561; max is 65536. You may try using --multi-dex option. Ok, I found the multiDexEnabled property and added multiDexEnabled true in the defaultConfig Also I made my application extend MultiDexApplication But it did not change anything, I still get Execution failed for task ':logic

Implementing MultiDex results in compiling for so long, and finally heap space error

穿精又带淫゛_ 提交于 2019-12-09 13:16:28
问题 I have a big Android project where I got the Unable to execute dex: method ID not in [0, 0xffff]: 65536 error; I believe some of you guys have definitely gone through this issue before. This is an error due to too many methods referenced in the app. I have looked for different sources online and found this might be the best solution. And I did the following: Added multiDexEnabled = true in the defaultConfig block of build.gradle . Added the following dependency: dependencies { compile 'com

Unable to merge dex after adding dependencies

大兔子大兔子 提交于 2019-12-09 03:56:47
问题 I am getting the error: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForPaidFreeDebug'. java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex After adding the following two dependencies: implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.2' implementation 'com.prolificinteractive:material-calendarview:1.4.3' Here are all of my dependencies: dependencies { compile 'com.android.support:multidex:1.0.2'

Android Espresso multidex fail

和自甴很熟 提交于 2019-12-09 03:07:52
问题 We use multidex in our app for a long time but recently with latest update it fails on android API <19 e.g. emulator with api 16 It is standard java.lang.NoClassDefFoundError. If I define multidexKeepProguard for missing class e.g. java.lang.NoClassDefFoundError. rx.plugins.RxJavaHooks exception -keep class rx.plugins.**{*;} then it will just fail in a different place with the same reason NoClassDefFound Here is the runner, app and manifest setup: https://gist.github.com/originx

Class not found exception when using Multidex

我的未来我决定 提交于 2019-12-08 13:26:52
问题 So my problem is I'm getting Class not found error while running the app on my device. "io.tutorial.app.App" class not found at the path io.tutorial.app Actually the class App.java is present at that path and also my class is extending MultiDexApplication . What I found so far is two dex files have generated in the built apk namely classes.dex and classes2.dex. The weird thing is the package "io.tutorial.app" is present at both dex files (I think this is the issue). There's no classes present

Xamarin.Android MultiDex not working on <21 devices

孤街醉人 提交于 2019-12-08 09:41:59
问题 This seems to be a somewhat recent problem, and I am honestly not sure which problem is the real issue. Last week, after updating VS2017 and Android Support Libraries, I started getting the error "java.exe has exited with code 2". After searching, it seemed like the consensus was to enable MultiDex. So I did that, and it worked fine on newer phones. But when I tried to compile on a KitKat phone, I started to get missing class exceptions (but only when I logged with Android Monitor, no