Process: com.json.test, PID: 29980
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/firebase-perf/M;
at com.google.firebase.perf.provider.FirebasePerfProvider.<clinit>(com.google.firebase:firebase-perf@@19.0.7:1)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.ActivityThread.installProvider(ActivityThread.java:4987)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4594)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4534)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.firebase-perf.M" on path: DexPathList[[zip file "/data/app/com.json.test-1/base.apk"],nativeLibraryDirectories=[/data/app/com.json.test-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.google.firebase.perf.provider.FirebasePerfProvider.<clinit>(com.google.firebase:firebase-perf@@19.0.7:1)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.ActivityThread.installProvider(ActivityThread.java:4987)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4594)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4534)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.internal.firebase-perf.M
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 16 more
Firebase SDK 최신 버전 업데이트로 해결함.
// add SDKs for any other desired Firebase products
// https://firebase.google.com/docs/android/setup#available-libraries
// Add the dependency for the Performance Monitoring library
implementation 'com.google.firebase:firebase-perf:19.0.8'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
// Add the Firebase Crashlytics SDK.
implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
// Recommended: Add the Google Analytics SDK.
implementation 'com.google.firebase:firebase-analytics:17.5.0'
반응형
'Android > Exception' 카테고리의 다른 글
[Android] ConcurrentModificationException hashmap 해결 방법 (0) | 2021.04.08 |
---|---|
[안드로이드] java.lang.IllegalAccessException: java.lang.Class (0) | 2020.07.28 |
[안드로이드] java.net.UnknownHostException 에러 (0) | 2020.06.09 |
안드로이드 ClassCastException 에러 (0) | 2020.06.04 |