NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/BuildCompat; - android

i am having a problem dealing with this error, when i run my app it stops and shows error in logcat:
Caused by: java.lang.ClassNotFoundException: Didn't find class
"android.support.v4.os.BuildCompat" on path: DexPathList[[zip file
"/data/app/homeseek.app.android.capstonehomeseek-2/base.apk"],nativeLibraryDirectories=[/data/app/homeseek.app.android.capstonehomeseek-2/lib/arm64,
/vendor/lib64, /system/lib64]]
full error:
FATAL EXCEPTION: main 11-29 13:00:24.538 1919-1919/? E/AndroidRuntime:
Process: homeseek.app.android.capstonehomeseek, PID: 1919 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime:
java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/v4/os/BuildCompat; 11-29 13:00:24.538 1919-1919/?
E/AndroidRuntime: at
android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:188)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:173)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:511)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
homeseek.app.android.capstonehomeseek.MainActivity.onCreate(MainActivity.java:48)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.Activity.performCreate(Activity.java:6323) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.access$900(ActivityThread.java:153) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:102) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.os.Looper.loop(Looper.java:148) 11-29 13:00:24.538 1919-1919/?
E/AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:5451) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.reflect.Method.invoke(Native Method) 11-29 13:00:24.538
1919-1919/? E/AndroidRuntime: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: Caused by:
java.lang.ClassNotFoundException: Didn't find class
"android.support.v4.os.BuildCompat" on path: DexPathList[[zip file
"/data/app/homeseek.app.android.capstonehomeseek-1/base.apk"],nativeLibraryDirectories=[/data/app/homeseek.app.android.capstonehomeseek-1/lib/arm64,
/vendor/lib64, /system/lib64]] 11-29 13:00:24.538 1919-1919/?
E/AndroidRuntime: at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.ClassLoader.loadClass(ClassLoader.java:511) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.ClassLoader.loadClass(ClassLoader.java:469) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:188) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:173) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:511) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:71) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
homeseek.app.android.capstonehomeseek.MainActivity.onCreate(MainActivity.java:48) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.Activity.performCreate(Activity.java:6323)  11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.access$900(ActivityThread.java:153)  11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:102)  11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
android.os.Looper.loop(Looper.java:148)  11-29 13:00:24.538
1919-1919/? E/AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:5451)  11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.reflect.Method.invoke(Native Method)  11-29 13:00:24.538
1919-1919/? E/AndroidRuntime: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)  11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: Suppressed:
java.lang.ClassNotFoundException: android.support.v4.os.BuildCompat
11-29 13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.Class.classForName(Native Method) 11-29 13:00:24.538
1919-1919/? E/AndroidRuntime: at
java.lang.BootClassLoader.findClass(ClassLoader.java:781) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: at
java.lang.ClassLoader.loadClass(ClassLoader.java:504) 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: ... 18 more 11-29
13:00:24.538 1919-1919/? E/AndroidRuntime: Caused by:
java.lang.NoClassDefFoundError: Class not found using the boot class
loader; no stack trace available
here's my build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "homeseek.app.android.capstonehomeseek"
minSdkVersion 20
targetSdkVersion 23
multiDexEnabled true
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile files('libs/PhotoUtil.jar')
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:palette-v7:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile ('com.android.support:support-v4:23.4.0'){
force = true;
}
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.android.gms:play-services:9.8.0'
compile 'com.squareup.picasso:picasso:2.5.2'
}
i really have no idea how to fix this please help me

I faced with this proplem .And I think problem is :
compile 'com.google.android.gms:play-services:9.8.0'
You complile with may packages .In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit . So this make NoClassDefFoundError .
Follow this my post: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap

Related

java.lang.UnsatisfiedLinkError whilw using NativeLib using jniLib NeptuneLiteApi

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.gtech.edcdemo, PID: 7655
java.lang.UnsatisfiedLinkError: dalvik.system.DexClassLoader[DexPathList[[dex file "/data/user/0/com.gtech.edcdemo/files/nepcore.dex"],nativeLibraryDirectories=[/data/app/com.gtech.edcdemo-2/lib/arm, /data/resource/lib, /vendor/lib, /system/lib]]] couldn't find "libDeviceConfig.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at com.pax.dal.impl.utils.DeviceConfig.<clinit>(SourceFile:22)
at com.pax.dal.impl.utils.ServiceUtils.getDeviceEnable(SourceFile:89)
at com.pax.dal.impl.utils.ServiceUtils.isModuleEnable(SourceFile:101)
at com.pax.dal.impl.E.u(SourceFile:82)
at com.pax.dal.impl.E.open(SourceFile:89)
at com.gtech.edcdemo.MainActivity.onCreate(MainActivity.kt:20)
at android.app.Activity.performCreate(Activity.java:6251)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:675)
I/Process: Sending signal. PID: 7655 SIG: 9
Using JniLibs in order to add NativeLib in Android studio while

FATAL EXCEPTION : unable to instantiate activity componentInfo in android studio

I have tried every answer for this on Google, but none worked for me.
I have just created an app I Android studio and add .jar file and simply running it.
But the app crashes leaving with below error message.
FATAL EXCEPTION: main Process: com.vtek.cam_pwr_flsh_cntrl, PID: 4850
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.vtek.cam_pwr_flsh_cntrl/com.vtek.cam_pwr_flsh_cntrl.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.vtek.cam_pwr_flsh_cntrl.MainActivity" on path: DexPathList[[zip file "/data/app/com.vtek.cam_pwr_flsh_cntrl-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.vtek.cam_pwr_flsh_cntrl-2, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vtek.cam_pwr_flsh_cntrl.MainActivity" on path: DexPathList[[zip file "/data/app/com.vtek.cam_pwr_flsh_cntrl-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.vtek.cam_pwr_flsh_cntrl-2, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
at android.app.ActivityThread.access$800(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5017) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
at dalvik.system.NativeStart.main(Native Method) 
Check in your manifest file if you have declared the class as an activity.
If missing, do it.
Clean and REBUILD the code.
Hope this helps.

ClassNotFoundException after adding Ion library in Android 4.4 (19)

After adding the Ion library to my project, I can't start my app in Android 4.4, everything higher works fine.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.swe.gruppe4.mockup2, PID: 3281
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.swe.gruppe4.mockup2/com.swe.gruppe4.mockup2.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com.swe.gruppe4.mockup2.LoginActivity" on path: DexPathList[[zip file "/data/app/com.swe.gruppe4.mockup2-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.swe.gruppe4.mockup2-2, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.swe.gruppe4.mockup2.LoginActivity" on path: DexPathList[[zip file "/data/app/com.swe.gruppe4.mockup2-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.swe.gruppe4.mockup2-2, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
at android.app.ActivityThread.access$800(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5017) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
at dalvik.system.NativeStart.main(Native Method) 
Application terminated.
I added Ion through the app's build.gradle as it is stated on the github, compile 'com.koushikdutta.ion:ion:2.+'.
As stated earlier, on higher Android versions it works fine.
It also works fine on a completely clean project with just adding Ion
I now fixed it myself.
I created a new project with the same package name and copied the app folder completely to the new project, it works fine there. Weird!

app is died, Occur ClassNotFoundException on android

when I run my app, app died and occur classNotFoundException.
perhaps, gradle problem ?
compileSdkVersion =22
buildToolsVersion =21.1.2
minSdkVersion =19
targetSdkVersion =22
I think code problem.
settings, or gradle problem.
please advice for me.
logcat
FATAL EXCEPTION: main
Process: kr.co.iosystem.blackeyeonandroid, PID: 27947
java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path: DexPathList[[zip file "/data/app/kr.co.iosystem.blackeyeonandroid-1.apk"],nativeLibraryDirectories=[/data/app-lib/kr.co.iosystem.blackeyeonandroid-1, /system/lib, /system/lib/arm]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:507)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4301)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path: DexPathList[[zip file "/data/app/kr.co.iosystem.blackeyeonandroid-1.apk"],nativeLibraryDirectories=[/data/app-lib/kr.co.iosystem.blackeyeonandroid-1, /system/lib, /system/lib/arm]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newApplication(Instrumentation.java:975)
at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4301) 
at android.app.ActivityThread.access$1500(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5001) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
at dalvik.system.NativeStart.main(Native Method) 

Unknown Source NullPointerException When Working With Expansion File

I've added an expansion file to my app that has been working fine until recently. Whenever any file in the expansion file is opened, the app crashes with a NullPointerException. However, this only happens when the app is downloaded from the Play Store or an APK outside of Eclipse. When the app is run from Eclipse there is no such problem and all the files in the expansion work fine. My stack trace is slightly unhelpful because it tells me the problem is from an unknown source.
11-29 16:23:29.477: E/AndroidRuntime(3839): FATAL EXCEPTION: main
11-29 16:23:29.477: E/AndroidRuntime(3839): Process: net.multieducator.telaviv, PID: 3839
11-29 16:23:29.477: E/AndroidRuntime(3839): java.lang.NullPointerException
11-29 16:23:29.477: E/AndroidRuntime(3839): at net.multieducator.telaviv.be.onCreateView(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.support.v4.app.Fragment.performCreateView(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.support.v4.app.BackStackRecord.run(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.support.v4.app.FragmentManagerImpl.execPendingActions(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.support.v4.app.FragmentManagerImpl$1.run(Unknown Source)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.os.Handler.handleCallback(Handler.java:733)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.os.Handler.dispatchMessage(Handler.java:95)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.os.Looper.loop(Looper.java:136)
11-29 16:23:29.477: E/AndroidRuntime(3839): at android.app.ActivityThread.main(ActivityThread.java:5017)
11-29 16:23:29.477: E/AndroidRuntime(3839): at java.lang.reflect.Method.invokeNative(Native Method)
11-29 16:23:29.477: E/AndroidRuntime(3839): at java.lang.reflect.Method.invoke(Method.java:515)
11-29 16:23:29.477: E/AndroidRuntime(3839): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
11-29 16:23:29.477: E/AndroidRuntime(3839): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
11-29 16:23:29.477: E/AndroidRuntime(3839): at dalvik.system.NativeStart.main(Native Method)
Thanks for any help :)
You don't say whether you are using ProGuard in the release build but the difference in stability is consistent with issues I've had with it.
If your expansion file references classes in the main project, ProGuard's minifyenabled option may have obfuscated their names. If those names don't match up with the expansion file's expectations, a NullPointerException could occur.
Things to try:
Set minifyenabled to false and build again
If this results in a working version, add -keep class <your classes' package name>.** { *; } to the proguard-rules.pro file so that ProGuard will not obfuscate the class and member names in that package.
To build a development version that uses ProGuard in the the same manner as a release, in the build.gradle file copy release (under buildTypes) and call it debug.

Categories

Resources