java - Fabric/Crashlytics NoClassDefFoundError only on certain devices -
i'm seeing crash in google play related fabric/crashlytics. happened after updated normal crashlytics new fabric crashlytics. can reproduce on 1 of devices (galaxy s2). other devices have (nexus 5 , s4) not have crash. here's stack trace:
08-19 09:32:26.328 7084-7084/com.tsm.countryjam d/dalvikvm﹕ wait_for_concurrent_gc blocked 0ms 08-19 09:32:26.653 7084-7088/com.tsm.countryjam d/dalvikvm﹕ gc_concurrent freed 251k, 12% free 9567k/10823k, paused 12ms+2ms, total 70ms 08-19 09:32:26.653 7084-7084/com.tsm.countryjam d/dalvikvm﹕ wait_for_concurrent_gc blocked 42ms 08-19 09:32:26.653 7084-7100/com.tsm.countryjam d/dalvikvm﹕ wait_for_concurrent_gc blocked 42ms 08-19 09:32:26.668 7084-7084/com.tsm.countryjam i/dalvikvm﹕ failed resolving lcom/crashlytics/android/beta/beta; interface 9027 'lio/fabric/sdk/android/services/common/deviceidentifierprovider;' 08-19 09:32:26.668 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/beta/beta;' failed 08-19 09:32:26.668 7084-7084/com.tsm.countryjam e/dalvikvm﹕ not find class 'com.crashlytics.android.beta.beta', referenced method com.crashlytics.android.crashlytics.<init> 08-19 09:32:26.668 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve new-instance 1791 (lcom/crashlytics/android/beta/beta;) in lcom/crashlytics/android/crashlytics; 08-19 09:32:26.668 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x22 @ 0x000a 08-19 09:32:26.668 7084-7084/com.tsm.countryjam i/dalvikvm﹕ failed resolving lcom/crashlytics/android/beta/beta; interface 9027 'lio/fabric/sdk/android/services/common/deviceidentifierprovider;' 08-19 09:32:26.668 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/beta/beta;' failed 08-19 09:32:26.668 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable find class referenced in signature (lcom/crashlytics/android/beta/beta;) 08-19 09:32:26.673 7084-7084/com.tsm.countryjam i/dalvikvm﹕ failed resolving lcom/crashlytics/android/beta/beta; interface 9027 'lio/fabric/sdk/android/services/common/deviceidentifierprovider;' 08-19 09:32:26.673 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/beta/beta;' failed 08-19 09:32:26.673 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable find class referenced in signature (lcom/crashlytics/android/core/pinninginfoprovider;) 08-19 09:32:26.673 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable find class referenced in signature (lcom/crashlytics/android/core/pinninginfoprovider;) 08-19 09:32:26.673 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable find class referenced in signature (lcom/crashlytics/android/core/pinninginfoprovider;) 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable find class referenced in signature (lcom/crashlytics/android/core/crashlyticslistener;) 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable find class referenced in signature (lcom/crashlytics/android/core/crashlyticslistener;) 08-19 09:32:26.678 7084-7084/com.tsm.countryjam i/dalvikvm﹕ failed resolving lcom/crashlytics/android/beta/beta; interface 9027 'lio/fabric/sdk/android/services/common/deviceidentifierprovider;' 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/beta/beta;' failed 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0x3474 @ 0x0f in lcom/crashlytics/android/crashlytics;.<init> 08-19 09:32:26.678 7084-7084/com.tsm.countryjam i/dalvikvm﹕ failed resolving lcom/crashlytics/android/answers/sessioneventtransform; interface 9072 'lio/fabric/sdk/android/services/events/eventtransform;' 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/answers/sessioneventtransform;' failed 08-19 09:32:26.678 7084-7084/com.tsm.countryjam e/dalvikvm﹕ not find class 'com.crashlytics.android.answers.sessioneventtransform', referenced method com.crashlytics.android.answers.answers.initializesessionanalytics 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve new-instance 1784 (lcom/crashlytics/android/answers/sessioneventtransform;) in lcom/crashlytics/android/answers/answers; 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x22 @ 0x0004 08-19 09:32:26.678 7084-7084/com.tsm.countryjam i/dalvikvm﹕ not find method io.fabric.sdk.android.services.common.commonutils.logcontrollederror, referenced method com.crashlytics.android.answers.answers.initializesessionanalytics 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve static method 59049: lio/fabric/sdk/android/services/common/commonutils;.logcontrollederror (landroid/content/context;ljava/lang/string;ljava/lang/throwable;)v 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x77 @ 0x0194 08-19 09:32:26.678 7084-7084/com.tsm.countryjam i/dalvikvm﹕ not find method io.fabric.sdk.android.services.settings.settings.getinstance, referenced method com.crashlytics.android.answers.answers.doinbackground 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve static method 59331: lio/fabric/sdk/android/services/settings/settings;.getinstance ()lio/fabric/sdk/android/services/settings/settings; 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x71 @ 0x000c 08-19 09:32:26.678 7084-7084/com.tsm.countryjam i/dalvikvm﹕ not find method io.fabric.sdk.android.services.common.commonutils.getstringsfilevalue, referenced method com.crashlytics.android.answers.answers.getoverridenspiendpoint 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve static method 59043: lio/fabric/sdk/android/services/common/commonutils;.getstringsfilevalue (landroid/content/context;ljava/lang/string;)ljava/lang/string; 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x71 @ 0x0008 08-19 09:32:26.678 7084-7084/com.tsm.countryjam e/dalvikvm﹕ not find class 'io.fabric.sdk.android.services.persistence.filestoreimpl', referenced method com.crashlytics.android.answers.answers.getsdkdirectory 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve new-instance 9090 (lio/fabric/sdk/android/services/persistence/filestoreimpl;) in lcom/crashlytics/android/answers/answers; 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x22 @ 0x0001 08-19 09:32:26.678 7084-7084/com.tsm.countryjam i/dalvikvm﹕ not find method io.fabric.sdk.android.services.common.crash$fatalexception.getsessionid, referenced method com.crashlytics.android.answers.answers.onexception 08-19 09:32:26.678 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve virtual method 59056: lio/fabric/sdk/android/services/common/crash$fatalexception;.getsessionid ()ljava/lang/string; 08-19 09:32:26.678 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x6e @ 0x000b 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ not find method io.fabric.sdk.android.services.common.crash$loggedexception.getsessionid, referenced method com.crashlytics.android.answers.answers.onexception 08-19 09:32:26.683 7084-7084/com.tsm.countryjam w/dalvikvm﹕ vfy: unable resolve virtual method 59058: lio/fabric/sdk/android/services/common/crash$loggedexception;.getsessionid ()ljava/lang/string; 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ vfy: replacing opcode 0x6e @ 0x000b 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ failed resolving lcom/crashlytics/android/answers/sessioneventtransform; interface 9072 'lio/fabric/sdk/android/services/events/eventtransform;' 08-19 09:32:26.683 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/answers/sessioneventtransform;' failed 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0x3455 @ 0x0c in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0xe6da @ 0x19 in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0xe78c @ 0x36 in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam w/dalvikvm﹕ unable resolve superclass of lcom/crashlytics/android/answers/sessionanalyticsfilesmanager; (9073) 08-19 09:32:26.683 7084-7084/com.tsm.countryjam w/dalvikvm﹕ link of class 'lcom/crashlytics/android/answers/sessionanalyticsfilesmanager;' failed 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0x342a @ 0x4b in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ dexopt: unable optimize static field ref 0x5e1e @ 0x72 in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ dexopt: unable optimize static field ref 0x5e1c @ 0x7e in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ dexopt: unable optimize static field ref 0x5e21 @ 0x8a in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0xe78f @ 0x115 in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0xe78f @ 0x17d in lcom/crashlytics/android/answers/answers;.initializesessionanalytics 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ dexopt: unable optimize instance field ref 0x5e91 @ 0x20 in lcom/crashlytics/android/answers/answers;.doinbackground 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ dexopt: unable optimize instance field ref 0x5e8c @ 0x22 in lcom/crashlytics/android/answers/answers;.doinbackground 08-19 09:32:26.683 7084-7084/com.tsm.countryjam i/dalvikvm﹕ dexopt: unable optimize instance field ref 0x5e8e @ 0x2a in lcom/crashlytics/android/answers/answers;.doinbackground 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/dalvikvm﹕ dexopt: unable opt direct call 0xe7ac @ 0x07 in lcom/crashlytics/android/answers/answers;.getsdkdirectory 08-19 09:32:26.683 7084-7084/com.tsm.countryjam d/androidruntime﹕ shutting down vm 08-19 09:32:26.683 7084-7084/com.tsm.countryjam w/dalvikvm﹕ threadid=1: thread exiting uncaught exception (group=0x4127b2a0) 08-19 09:32:26.683 7084-7084/com.tsm.countryjam e/androidruntime﹕ fatal exception: main java.lang.noclassdeffounderror: com.crashlytics.android.beta.beta @ com.crashlytics.android.crashlytics.<init>(crashlytics.java:29) @ com.tsm.events.application.townsquareevents.oncreate(townsquareevents.java:59) @ android.app.instrumentation.callapplicationoncreate(instrumentation.java:1014) @ android.app.activitythread.handlebindapplication(activitythread.java:4251) @ android.app.activitythread.access$1400(activitythread.java:140) @ android.app.activitythread$h.handlemessage(activitythread.java:1297) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:137) @ android.app.activitythread.main(activitythread.java:4921) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:511) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1027) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:794) @ dalvik.system.nativestart.main(native method)
and here's contents of build.gradle:
buildscript { repositories { jcenter() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'com.android.tools.build:gradle:1.0.+' classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { jcenter() flatdir { dirs 'libs' } maven { url 'https://maven.fabric.io/public' } } android { compilesdkversion 22 buildtoolsversion "22.0.1" defaultconfig { applicationid "com.tsm.events" minsdkversion 15 targetsdkversion 22 versioncode 1 versionname "1.0.0" multidexenabled = true } dexoptions { javamaxheapsize "4g" } buildtypes { debug { debuggable true } release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile project(':libraries:residemenu') //compile 'com.android.support:support-v4:20.0.+' compile 'com.android.support:support-v4:22.0.+' compile files('libs/universal-image-loader-1.9.3.jar') compile 'io.realm:realm-android:0.81.1' compile 'se.emilsjolander:stickylistheaders:2.5.2' compile 'com.google.android.gms:play-services:6.5.87' compile 'com.parse.bolts:bolts-android:1.+' compile filetree(dir: 'libs', include: 'parse-*.jar') compile('com.crashlytics.sdk.android:crashlytics:2.4.0@aar') { transitive = true } // twitter kit compile('com.twitter.sdk.android:twitter:1.6.0@aar') { transitive = true } compile('com.twitter.sdk.android:tweet-composer:0.8.0@aar') { transitive = true; } compile 'com.facebook.android:facebook-android-sdk:3.20.0' compile 'com.google.maps.android:android-maps-utils:0.3+' compile(name: 'estimote-sdk-preview', ext: 'aar') compile files('libs/biweekly-0.4.2.jar') compile files('libs/jackson-core-2.5.2.jar') }
i figured out hunch! had add multi-dex support after upgrading new fabric framework, , had feeling maybe didn't correctly. after adding these additional changes, no longer crashes:
in build.gradle, added incremental settings:
dexoptions { incremental true javamaxheapsize "4g" }
and additional dependency:
compile 'com.android.support:multidex:'
and on application class i'm extending multidexapplication:
public class townsquareevents extends android.support.multidex.multidexapplication
Java - Fabric/Crashlytics Noclassdeffounderror Only On Certain Devices - >>>>> Download Now
ReplyDelete>>>>> Download Full
Java - Fabric/Crashlytics Noclassdeffounderror Only On Certain Devices - >>>>> Download LINK
>>>>> Download Now
Java - Fabric/Crashlytics Noclassdeffounderror Only On Certain Devices - >>>>> Download Full
>>>>> Download LINK ib