android-multidex

Error:Cannot fit requested classes in a single dex file.Try supplying a main-dex list. # methods: 72477 > 65536

╄→尐↘猪︶ㄣ 提交于 2019-11-27 00:03:46
I want to add fused location services but it shows me some error. Help me. apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "27.0.1" defaultConfig { applicationId "com.example.adil.bloodbankapplication" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com

Unable to merge DEX in Android Studio 3.0.1 even after enabling multidex

馋奶兔 提交于 2019-11-26 21:55:45
问题 I have a problem in my android project. I recently upgraded from lower version and then rebooted my OS with Linux. My project was working fine. But, now as I have compiled, it shows unable to merge dex. I tried : putting enable; multiDexEnabled true option in build gradle, and did everything possible. So, this is my console log after running stack trace and I couldnt still figure out, what went wrong. Can anybody help me ? Any help would be much appreciated. I have posted my app build gradle

java.lang.NoClassDefFoundError: com.google.android.gms.common.internal.zzd

狂风中的少年 提交于 2019-11-26 21:53:31
问题 Using Maps api v2 and it works perfectly with 4.4 , 5.0, 5.1, 5.1.1 , 6 but app crashes when I try 4.2.2. I've been doing lots of research but nothing seems to work. Here's the complete log. FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.google.android.gms.common. at com.google.android.gms.measurement.internal.zzk$zza.get( at com.google.android.gms.measurement.internal.zzc.zzkG( at com.google.android.gms.measurement.internal.zzr.<init>( at com.google.android.gms.measurement

Android MultiDex: an all time salvation is imperative

牧云@^-^@ 提交于 2019-11-26 18:36:29
问题 This question is the aftermath of a four day long and painful journey of consecutive attempts to overcome a appDebugAssemble failed build. I've read a super considerable amount of topics/articles that google threw at me by looking up anything with the term "multidex" but to no avail. Recently I've started using Android Studio 3.0 Beta 4 and updated the SDK versions accordingly to Android O build release. Alongside this, I'm using AS3b4 with Gradle 4.1-all, and up to now, I was enjoying the

NoClassDefFoundError below SDK 21

和自甴很熟 提交于 2019-11-26 13:03:35
问题 I just experienced an awkward bug in my App. On my Nexus 5/7, running android 5.0.1/5.0.2, everything works just fine. However if i try running the exact same code on a device with an earlier version (tested 4.4.4 and 4.3) I get the following error: 03-13 13:49:41.140 21714-21714/? E/dalvikvm﹕ Could not find class \'com.default.package.application.model.Appcomponent\', referenced from method com.default.package.application.controller.DatabaseHandler.getScreenComponents 03-13 13:49:41.140

How to shrink code - 65k method limit in dex

匆匆过客 提交于 2019-11-26 12:42:03
I have a rather large Android app that relies on many library projects. The Android compiler has a limitation of 65536 methods per .dex file and I am surpassing that number. There are basically two paths you can choose (at least that I know of) when you hit the method limit. 1) Shrink your code 2) Build multiple dex files ( see this blog post ) I looked into both and tried to find out what was causing my method count to go so high. The Google Drive API takes the biggest chunk with the Guava dependency at over 12,000. Total libs for Drive API v2 reach over 23,000! My question I guess is, what

Error:Cannot fit requested classes in a single dex file.Try supplying a main-dex list. # methods: 72477 > 65536

…衆ロ難τιáo~ 提交于 2019-11-26 12:16:41
问题 I want to add fused location services but it shows me some error. Help me. apply plugin: \'com.android.application\' android { compileSdkVersion 26 buildToolsVersion \"27.0.1\" defaultConfig { applicationId \"com.example.adil.bloodbankapplication\" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName \"1.0\" testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(\'proguard-android

The number of method references in a .dex file cannot exceed 64k API 17

吃可爱长大的小学妹 提交于 2019-11-26 04:18:59
I am building an app with SugarORM Library but when I try to build the project for API 17 (didn't check for others) it shows build error. Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2330Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72330Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72330Library UP-TO-DATE :app:prepareComAndroidSupportDesign2330Library UP-TO-DATE :app

java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex

喜夏-厌秋 提交于 2019-11-26 03:14:36
问题 I am not sure what this error means. Execution failed for task \':excelSior:packageAllDebugClassesForMultiDex\'. > java.util.zip.ZipException: duplicate entry: android/support/v4/util/TimeUtils.class I am currently using android-support-v4.jar for my libraries dependencies { compile project(\':addThisSDK\') compile project(\':centeredContentButton\') compile project(\':googleplayservices_lib\') compile files(\'libs/adxtag2.4.6.jar\') compile files(\'libs/android-support-v4.jar\') compile

How to shrink code - 65k method limit in dex

会有一股神秘感。 提交于 2019-11-26 03:04:39
问题 I have a rather large Android app that relies on many library projects. The Android compiler has a limitation of 65536 methods per .dex file and I am surpassing that number. There are basically two paths you can choose (at least that I know of) when you hit the method limit. 1) Shrink your code 2) Build multiple dex files (see this blog post) I looked into both and tried to find out what was causing my method count to go so high. The Google Drive API takes the biggest chunk with the Guava