android-multidex

Program type already present: BuildConfig

徘徊边缘 提交于 2019-11-29 01:07:18
I'm trying to generate a release build but im not able because of mutidex issues my project has all the multidex enabled and dependencies added The error i'm receiving is : Execution failed for task ':app:transformClassesWithMultidexlistForRelease Caused by: com.android.build.api.transform.TransformException: Error while generating the main dex list. and aslo: Caused by: com.android.tools.r8.errors.CompilationError: Program type already present: com.myapp.BuildConfig You are getting this error because you a have library module which has the same package name as the app module. The solution

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

自古美人都是妖i 提交于 2019-11-28 23:35:29
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 android.support.v4.app.NavUtils$NavUtilsImplJB.getParentActivityName(NavUtils .java:125) at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:302) at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:281) at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:142) at android.support.v7.app

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

狂风中的少年 提交于 2019-11-28 10:58:26
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 have no clue. Interestingly this only fails on my machine. I cleaned up everything, including reinstall etc but nothing worked. Anyone had the same issue and how did you solve it? Or any direction that I can take a look? AGPBI: { "kind":"error", "text":"Program type already present: android.support.v4.accessibilityservice

Is there a way to limit method amount in main dex file while using MultiDex feature in Android Studio

ぃ、小莉子 提交于 2019-11-28 10:14:35
When I enabled MultiDex feature in Android Studio like the document says, it automatically spilted into two or more dex files. I cannot config it. And it seems that in the main dex file, the amount of methods is very close to the limitation(65536). The question is how to config it, make the amount of methods in the main dex file reduce to a certain number, say 60k. I have to upload the apk to amazon appstore, and the people of amazon will add a few methods into the main dex file and make it over the 65536 limit. dx tool has the following options: --minimal-main-dex - will put only classes that

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

非 Y 不嫁゛ 提交于 2019-11-28 09:04:17
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 one of the above is sufficient but I have just written both. I tried different ways to optimize the

gradle - Android Studio build too slow multidex application

余生颓废 提交于 2019-11-28 08:58:48
When I add to my project the multidex:true, and make an Application class that extends from the MultiDexApplication, my project build time passed from 20 sec to around 90 sec.How to do some faster? Mark Pazon If you are like me who already tried Vic Vu's solution but still can't avoid enabling multiDex then you can try this (as long as your are using a device that has Android 5.0 and above). Note This will only speed up your development build. Your production build will still be slow. Basically you need to introduce 2 product flavors one for dev and one for prod . Add multiDexEnabled true

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

守給你的承諾、 提交于 2019-11-28 07:41:05
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? We have 2 options: Change DexExecTask [introduce new parameter for multi dex], compile ant.jar, use this jar for building. I don't like this option, coz we have to provide updated ant.jar for all team members. Modify project build.xml file. I have found awesome ant build file, that has all modifications for support multi-dex: https://github.com/ruboto/ruboto-irb/blob/master/build.xml Hope, that it helps. I introduced multi-dex support in

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

﹥>﹥吖頭↗ 提交于 2019-11-28 01:33:34
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 and the error below apply plugin: 'com.android.application' android { compileSdkVersion 26

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

早过忘川 提交于 2019-11-28 01:20:50
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.internal.zzx.zzb( at com.google.android.gms.measurement.internal.zzt.<init>( at com.google.android.gms

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

丶灬走出姿态 提交于 2019-11-27 23:42:04
问题 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