NoClassDefFoundError: com.google.firebase.FirebaseOptions

前端 未结 4 2638
有刺的猬
有刺的猬 2021-02-20 16:26

I keep on getting the NoClassDefFoundError on other test device (4.4.2) that I\'m using. But works fine on my test device (Android 5.1).

I tried the solutio

4条回答
  •  后悔当初
    2021-02-20 17:16

    This is what solved the problem for me:

    1. Add compile 'com.android.support:multidex:1.0.2' to app/build.gradle.

    2. Add android:name="android.support.multidex.MultiDexApplication" to the application tag in AndroidManifest.xml.

      If you are using a custom Application class, skip the AndroidManifest.xml and make your Application class extend MultiDexApplication instead of Application.

提交回复
热议问题