android-multidex

Android MultiDex - A/libc(28851): Fatal signal 11 (SIGSEGV), thread 29117 (pool-16-thread-)

巧了我就是萌 提交于 2019-12-11 13:18:14
问题 I am getting this error in my app but only on some devices. So far only a few crashes have been reported. I recently enabled multiDex support and since then it crashes on some of the pre-lollipop devices. A/libc(28851): Fatal signal 11 (SIGSEGV), thread 29117 (pool-16-thread-) There is no other information given in the logcat. I saw some other posts on SO but they are different and don't apply to my case. I guess it has to do with memory usage ? 来源: https://stackoverflow.com/questions

CREATEMULTIDEXMAINDEXCLASSLIST error when building xamarin.android using Multidex

左心房为你撑大大i 提交于 2019-12-11 08:06:27
问题 Edit - Reduced to the root of the problem I'm getting this error when Multi-Dex is enabled. CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ':' before '.jar' in argument number 2 I have tracked it down to this jar file being included in the ProGuard command line: obj/Debug/__library_projects__/DeviceAPI_Android/library_project_imports/DeviceAPI_Android.Jars.cw-deviceapi(2016.05.16).jar It's the brackets in the file name which are causing the error. I've proved this by

What's the difference between extending MultiDexApplication and MultiDex.install(this)?

痴心易碎 提交于 2019-12-11 06:55:20
问题 From the documentation, I read that there are two ways to support MultiDex in devices below API 21: Having the Application class extend MultiDexApplication , and Using MultiDex.install(this) in the Application class's onAttachBaseContext(Context base) function in case the Application extends something else. Are they basically the same with extending MultiDexApplication calling MultiDex.install(this) in the onAttachBaseContext() by default, or are there differences between both methods? 回答1:

Execution failed for task ':app:transformClassesWithMultidexlistForDebug

心已入冬 提交于 2019-12-11 06:48:32
问题 I failed to ./gradlew assembleDebug of my appium project. Following is my app build.gradle file apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.2" defaultConfig { applicationId "com.example.keya.f8sampleproject" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles

multiDexKeepFile ignored / not working

走远了吗. 提交于 2019-12-11 06:46:46
问题 My application is a custom class that extends MultiDexApplication. public class CustomApp extends MultiDexApplication { @Override public void onCreate() { super.onCreate(); //TODO } } In my AndroidManifest.xml : <application android:name=".helper.CustomApp" android:allowBackup="false" android:icon="@mipmap/ic_launcher" android:label="${app_name}" android:largeHeap="true" android:screenOrientation="portrait" android:supportsRtl="true" android:theme="@style/AppTheme" tools:replace="android

MultiDexExtractor in wrong dex file

泪湿孤枕 提交于 2019-12-11 03:42:38
问题 I have an app that is too big to fit into one dex file so I'm using multidex. It works fine when i create it on certain machines, but when i create it on another one, the app crashes on some devices, not all (crashes on Note 2, works on Nextus 6). 8519-8519/? E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.support.multidex.MultiDexExtractor at android.support.multidex.MultiDex.install(MultiDex.java:159) at com.myapp.MyApplication.onCreate(MyApplication.java:39)

Multidex issue in Android

柔情痞子 提交于 2019-12-11 03:08:53
问题 I dont Know how to solve Multidex issue in Android. My app has lots of SDKs integration, so App is crossing 65k Over Method limit. I went through lots of tutorials and blogs. I got so many solutions. One of them is below mentioned as part of my gradle. Please someone provide a good and working solution. android { minSdkVersion 16 compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "your.package.name" .......... } buildTypes { release { ............................. }

java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions

有些话、适合烂在心里 提交于 2019-12-11 00:36:53
问题 I am using parse.com sdk in my app. It is working absolutely fine with Lollipop . But when I run the app on below lollipop versions I get this error: java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder at com.parse.Parse.initialize(Parse.java:297) at com.xxx.android.MyApp.onCreate(MyApp.java:16) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4747) at android.app

Room.inMemoryDatabaseBuilder() not found in instrumented test

北城余情 提交于 2019-12-11 00:19:07
问题 I'm trying to create an instrumented test for Room DB I have in my app, but I keep getting this error: java.lang.NoSuchMethodError: No static method inMemoryDatabaseBuilder(Landroid/content/Context;Ljava/lang/Class;)Landroid/arch/persistence/room/RoomDatabase$Builder; in class Landroid/arch/persistence/room/Room; or its super classes (declaration of 'android.arch.persistence.room.Room' appears in /data/app/com.example.android-nhsbta60PW8T0UpasgtR0B==/base.apk) at com.example.android

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex' in Android Studio

耗尽温柔 提交于 2019-12-10 18:45:02
问题 I am getting the following error when I run my application where creative sdk is integrated for photo editing option. Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: android/support/multidex/MultiDex$V14.class This is my apps gradle file.Here creative sdk for image editing option is integrated and multidex option is enabled. apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1"