android-multidex

App not launching with multidexEnabled true in android studio - Famous 65k reference method

馋奶兔 提交于 2019-12-08 08:21:48
问题 Earlier I was using Eclipse IDE and as I have used lot of library from Amazon I started getting 65K method reference error. SO I shifted from Eclipse to Android studio latest preview channel version. My gradle looks like : apply plugin: 'com.android.application' android { packagingOptions { exclude 'META-INF/LICENSE' } signingConfigs { xxx { keyAlias 'xxx' keyPassword 'xxx' storeFile file('path') storePassword 'xxx' } } compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig {

Build failing in Travis due to multidex/android bug?

心不动则不痛 提交于 2019-12-08 06:05:42
问题 We are not using build tools "26.0.2" in our project. In fact, doing a grep -RF "26.0.2" . | grep -v android-profile on our project directory does not return anything except for ./CBSandbox/build/intermediates/multi-dex/release/components.flags:-libraryjars /home/gabor/Android/Sdk/build-tools/26.0.2/lib/shrinkedAndroid.jar ./CBSandbox/build/intermediates/multi-dex/debug/components.flags:-libraryjars /home/gabor/Android/Sdk/build-tools/26.0.2/lib/shrinkedAndroid.jar That in itself is bogus

Android build error: Program type already present: android.support.v7.app.**

人盡茶涼 提交于 2019-12-08 03:39:49
问题 There are quite a few questions like this, but none of them seem to solve my issue, so maybe it's more specific to the library listed in the error message. I have tried just about everything other answers have suggested, but still see the same error. I also get a Run Tasks error but I have multiDexEnabled true . Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Program type already present: android.support.v7.app.ActionBar$LayoutParams Message

DexOverflowException: Cannot fit requested classes in the main-dex file

眉间皱痕 提交于 2019-12-08 02:54:02
问题 I have quite big multi module, multi flavor multidex project, but recently I got error when trying to do command line build (assemble{flavor}Release) Message is: DexOverflowException: Cannot fit requested classes in the main-dex file Here is more logs from --debug build: /Users/bartek/Documents/workspace/android/argus-android/Argus/app/build/intermediates/transforms/dexBuilder/argus/release/1114.jar 15:54:42.645 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android

Firebase API initialization failure,java.lang.reflect.InvocationTargetException

巧了我就是萌 提交于 2019-12-08 02:43:48
问题 I am using firebase auth, database and storage services in my app. It was working fine previously. I have added firebase cloud messaging setup as described in docs. But app crashes at runtime.I investigated the issue for about 4 hours and tried different solutions. Like keeping all libs version same, changing appcompat library version and change app to multidex.But nothing helped. Below is my gradle dependencies: compile('com.digits.sdk.android:digits:2.0.6@aar') { transitive = true; }

Android build error: Program type already present: android.support.v7.app.**

冷暖自知 提交于 2019-12-07 23:13:28
There are quite a few questions like this, but none of them seem to solve my issue, so maybe it's more specific to the library listed in the error message. I have tried just about everything other answers have suggested, but still see the same error. I also get a Run Tasks error but I have multiDexEnabled true . Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Program type already present: android.support.v7.app.ActionBar$LayoutParams Message{kind=ERROR, text=Program type already present: android.support.v7.app.ActionBar$LayoutParams, sources=

Too many method references in android library project - ClassNotFoundException

流过昼夜 提交于 2019-12-07 10:54:00
问题 I have library project which I am using in main android project using AAR file. I am getting the famous 65k method limit now which I have expected, but I have few queries. I have added AAR file in libs folder of my main project and compiled the same in build.gradle. 1) Do I need to add multi-dex support in both library as well as main android project? 2) Do I need to add afterEvaluate script in both project? Most importantly if we got multi-dex working, we might get issue that in main android

Could not find multidex.jar (com.android.support:multidex:1.0.2)

拜拜、爱过 提交于 2019-12-06 21:53:28
问题 Could not find multidex.jar (com.android.support:multidex:1.0.2). Searched in the following locations: https://jcenter.bintray.com/com/android/support/multidex/1.0.2/multidex I have just installed latest version of Android Studio 3.1.3 When i tried to sync my project it shows failed to resolve : multidex Also i tried https://jcenter.bintray.com/com/android/support/multidex/1.0.2/multidex this link which shows 404 error. Please help Project Level : // Top-level build file where you can add

Multidex installation failure

微笑、不失礼 提交于 2019-12-06 17:17:41
问题 I'm using CircledImageView library. It works fine on lollipop+ android versions. But in kitkat it's crashing. So after searching on google. I found that i have to implement multidex in my app. So this my application class. public class FireApp extends Application { @Override public void onCreate() { super.onCreate(); Firebase.setAndroidContext(this); Fresco.initialize (this); } @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }

java.lang.VerifyError with API < 21

痞子三分冷 提交于 2019-12-06 12:39:08
问题 I'm using MultiDex in my app to support over 65k methods. Over api 21 it works well because it does a predex build. Under api 21 I have a crash in my Application with this stacktrace: java.lang.VerifyError: mypackage/com/myapp/MyAppApplication at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1215) at android.app.Instrumentation.newApplication(Instrumentation.java:990) at android.app.Instrumentation.newApplication(Instrumentation.java:975) at android