android-multidex

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

北城以北 提交于 2019-11-30 11:32:22
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 { defaultConfig { multiDexEnabled true testInstrumentationRunner "android.support.multidex.MultiDexTestRunner" } } But that produces a ClassNotFoundException when the tests are run. The API documentation and dexdump show that there is com.android.test.runner.MultiDexTestRunner. So if I disbelieve the documentation and instead specify dependencies { compile 'com.android

DexIndexOverflowException: Cannot merge new index 65772 into a non-jumbo instruction!: Jumbo Mode? and/or Multi-Dex? What is behind the scene?

我的梦境 提交于 2019-11-30 11:13:54
I have tried to set jumboMode in gradle for my project, it seems able to solve the following DexIndexOverflowException: com.android.dex.DexException: Cannot merge new index 65536 into a non-jumbo instruction! DexIndexOverflowException: Cannot merge new index 65772 into a non-jumbo instruction! 1) What is jumboMode option actually does behind the scene? android { ... dexOptions { jumboMode true } } 2) I also notice that enabling multi-dex can solve the same problem as well, what is the right choice between these two approaches? android { ... defaultConfig { ... multiDexEnabled true } } "Jumbo"

Android Studio 3.0 Beta 1: Failed to resolve: com.android.support:multidex:1.0.2

﹥>﹥吖頭↗ 提交于 2019-11-30 10:45:24
问题 After migrating from Android Studio 3.0 (Canary 5) to Android Studio 3.0 (Beta 1), and moving to latest gradle , i.e. 'com.android.tools.build:gradle:3.0.0-beta1' When I try to gradle sync, it error stating below. Failed to resolve: com.android.support:multidex:1.0.2 Failed to resolve: com.android.support:multidex-instrumentation:1.0.2 I check on Android Studio 3.0 Canary 9 - Failed to resolve packages, it doesn't solve my problem, as I already have this maven { url 'https://maven.google.com'

Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams

邮差的信 提交于 2019-11-30 06:37:46
I'm getting Multiple dex files define error in my project. I'm using these two tags in build.gradle as well dexOptions { preDexLibraries = false } defaultConfig { multiDexEnabled true } but still getting this error. Information:Gradle tasks [:app:assembleDebug] Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams; Error:com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams; Error: at com.android.dx.merge.DexMerger

Android Multiple dex files define Lcom/google/android/gms/common/api/zza

早过忘川 提交于 2019-11-30 02:44:21
问题 Building project and deploying app to the emulator with API level 22 or 25 goes ok, but when i try to build APK or deploy app to my real device with API level 16 i get the following error: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api

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

↘锁芯ラ 提交于 2019-11-29 17:15:53
问题 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 { defaultConfig { multiDexEnabled true testInstrumentationRunner "android.support.multidex.MultiDexTestRunner" } } But that produces a ClassNotFoundException when the tests are run. The API documentation and dexdump show that there is com.android.test.runner

DexIndexOverflowException: Cannot merge new index 65772 into a non-jumbo instruction!: Jumbo Mode? and/or Multi-Dex? What is behind the scene?

独自空忆成欢 提交于 2019-11-29 16:46:15
问题 I have tried to set jumboMode in gradle for my project, it seems able to solve the following DexIndexOverflowException: com.android.dex.DexException: Cannot merge new index 65536 into a non-jumbo instruction! DexIndexOverflowException: Cannot merge new index 65772 into a non-jumbo instruction! 1) What is jumboMode option actually does behind the scene? android { ... dexOptions { jumboMode true } } 2) I also notice that enabling multi-dex can solve the same problem as well, what is the right

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

梦想与她 提交于 2019-11-29 06:11:35
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 "Install" button, the app will download, the status will change to "Installing..." and then the following dialog appears: What can be done? Facts about my app that could help troubleshooting: The app is targeting API22 with a minSDK of 17. I'm not using proguard. The app is using multidex via the multidex support library. app/build.gradle: buildscript {

Android MultiDex - Questions on Inner Workings

老子叫甜甜 提交于 2019-11-29 04:07:39
I recently discovered the new MultiDex functionality from Android for working with apps having more than 65,000 references. See: https://developer.android.com/tools/building/multidex.html Can someone help me understand the following questions: 1) How does the Gradle build plugin determine what to put in the primary dex file (classes.dex) vs the secondary dex files? Based on the doc there are certain things required to be in primary dex but it doesn't give any examples. Are all activities required to be in the primary dex file? Quoted Text: There are complex requirements regarding what classes

Didn't find class “android.support.multidex.MultiDexApplication” on path: DexPathList

陌路散爱 提交于 2019-11-29 02:48:50
I'm trying the new MultiDex Support on my app and so far I've managed to compile my app correctly, but when running it, I get the following exception: java.lang.RuntimeException: Unable to instantiate application android.support.multidex.MultiDexApplication: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList[[zip file "/data/app/me.myapp.main-2.apk"],nativeLibraryDirectories=[/data/app-lib/me..main-2, /vendor/lib, /system/lib]] at android.app.LoadedApk.makeApplication(LoadedApk.java:507) at android.app.ActivityThread