简体   繁体   中英

Android/Crashlytics NoClassDefFoundError for com.crashlytics.android.beta.Beta at runtime

I'm using Android Studio 1.0.1, and have set up Fabric/Crashlytics. The app builds with no errors, but when I Run/Debug, i get the following:

01-23 18:05:00.022  26794-26794/com.myapp.android E/dalvikvm﹕ Could not find class 'com.crashlytics.android.beta.Beta', referenced from method com.crashlytics.android.Crashlytics.<init>
01-23 18:05:00.044  26794-26794/com.myapp.android E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.myapp.android, PID: 26794
java.lang.NoClassDefFoundError: com.crashlytics.android.beta.Beta
        at com.crashlytics.android.Crashlytics.<init>(Crashlytics.java:219)
        at com.crashlytics.android.Crashlytics.<init>(Crashlytics.java:202)
        at com.crashlytics.android.Crashlytics.<init>(Crashlytics.java:197)
        at com.myapp.android.MyApplication.onCreate(MyApplication.java:18)

and so on.

The Fabric plugin for Android Studio made all of the required changes to build.gradle (to grab Crashlytics via maven) and other files (otherwise it wouldn't build!) so I'm at wit's end here. Anybody have an idea what's up?

In your manifest add the MultiDexApplication class

<application
    android:name="android.support.multidex.MultiDexApplication">
</application>

Thank you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM