android-multidex

Android build gradle failing, Error app:transformClassesWithMultidexlistForDebug'

亡梦爱人 提交于 2019-12-13 08:38:57
问题 Error Log Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [D:\Android\testapp\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\Code Nemesis.gradle\caches\transforms-1\files-1.1\support-core-ui-27.1.0.aar\5ded4fc43c89c2e4a62253c7f0400fc3\jars\classes.jar(;;;;;;**.class)] (Duplicate zip entry [classes.jar:android/support/design/widget/CoordinatorLayout$Behavior.class])) Gradle apply plugin: 'com

Getting Error:Execution failed for task ':app:transformClassesWithMultidexlistForRelease' with MultiDex and disabling obfuscation

瘦欲@ 提交于 2019-12-13 06:59:36
问题 Hi I am using MultiDex in my app with Proguard. When -dontobfuscate line is present in the proguard rules, I am able to generate minified apk without obfuscation. But when I remove this line, to generate an obfuscated apk, from proguard rules I am getting this error in gradle console . Here's the link to my gradle error Gradle Error. Also I have mentioned it below AGPBI: {"kind":"error","text":"Error converting bytecode to dex:\n Cause: java.lang.RuntimeException: Exception parsing classes",

How to integrate CreativeSDKImage with an exisiting Parse Android Project?

蓝咒 提交于 2019-12-13 06:08:35
问题 The issue I have is that I have an existing project that depends on Parse. My question is how do I integrate Adobe CreativeSDKImage because it extends MultiDexApplication whereas Parse Application (Class) extends Application. Existing Project e.g (MyApp extends Application ) import android.app.Application; CreativeSDK based on ADOBE CREATIVE SDK IMAGE GUIDE e.g (CreativeSDKImageSampleApp extends) import android.support.multidex.MultiDexApplication; After hours of trying to figure out why my

MultiDex: Main Dex Capacity Exceeded with MultiDex Enabled

强颜欢笑 提交于 2019-12-13 04:11:03
问题 I'm using a package I've included into my project that requires MultiDex, I've got 156561 references so I'll need multiple .dex files. However it fails, citing that the main dex file is too large Some suggested using keepRuntimeAnnotatedClasses false, but I'm using Xamarin and its not clear on how to accomplish this without Gradle. Others suggest setting the minimum API > 21, which is already true for my project. I've also manually upgraded Proguard, as MultiDex uses it and got the newest 1.8

Android Multidex support library is disabled

蹲街弑〆低调 提交于 2019-12-12 10:53:54
问题 I'm experiencing some problem with multidex support in my app, in fact the app install normally, but through the process, some activities crashed and the app, relaunches the main activity. In logcat I found this : I/MultiDex: install I/MultiDex: VM has multidex support, MultiDex support library is disabled. But I followed recommendations to enable Multidex support : Gradle : compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { applicationId "com..company.package" minSdkVersion 15

Generate MainDexList multidex for Maven

旧街凉风 提交于 2019-12-12 05:43:49
问题 I am experiencing some build issues for an Android project. We had to start using multidex support given that we have over the 65K limit for methods. One thing I'm having issues with though is creating the main dex list file. I can build everything but after I drop down the apk onto my device the app crashes and I get unorthodx errors like NoClassDefFoundError or VerifyError. So, I think it has something to do with multidex, I'm pretty stuck. Should I just add all class files to the list?

how to use android-support-multidex.jar for phone prior to Android 5.0 in android studio?

。_饼干妹妹 提交于 2019-12-12 05:41:44
问题 I want to build my app with more classes.dex file in one apk. So I follow instruction of google help page. It is ok for android 5.0, But i cannot build for phone prior to Android 5.0. it always report:com.android.dex.DexException: Too many classes in --main-dex-list, main dex capacity exceeded. I don't know hot to build. My build gradle: apply plugin: 'com.android.application' android { compileSdkVersion 21 //buildToolsVersion "20" buildToolsVersion "21.1.1" defaultConfig { applicationId "com

MultiDex problems with Gradle and ProGuard

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:24:41
问题 I am having difficulties with MultiDex. I have enabled it in Gradle ( multiDexEnabled true ) and main class is calling MultiDex.install in attachBaseContext . I suspect the Gradle is not adding MultiDexExtractor class to first dex file (it is not in maindexlist_deobfuscated.txt ). Snippet from log: 06-03 07:56:59.030 4088-4088/xxx.android I/dalvikvm: Could not find method android.support.multidex.MultiDexExtractor.verifyZipFile, referenced from method android.support.multidex.MultiDex

React Native 0.60 - Unable to Run App with react-native run-android: java.lang.NoClassDefFoundError

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 17:15:09
问题 It's late on Friday before a long weekend, and I'm having issues running an react-native app. Current version is 0.60 (latest), and running the command react-native run-android Results in a debug build that successfully installs on my connected app, but crashes upon opening with the following error: FATAL EXCEPTION: main Process: com.myApp, PID: XXXX java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq Googling this cryptic error results in a

Execution failed for task

佐手、 提交于 2019-12-11 15:52:25
问题 Getting Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. while adding any dependency to my current project. Checked on SO for the solution but that didn't work in my case. Please suggest the possible solution for this error. TIA 回答1: Nothing worked. Finally uninstalled the Android Studio and re-installation worked. Uninstall/Reinstall worked in my case but you should try other solution first and if nothing helps you, then you should follow this as it is