NoClassDefFoundError: com/google/firebase/perf/internal/RemoteConfigManager

2,172 views
Skip to first unread message

Vilky M

unread,
Dec 12, 2018, 10:53:19 AM12/12/18
to Firebase Google Group
Randomly my app is crashing with following error 

java.lang.NoClassDefFoundError: com/google/firebase/perf/internal/RemoteConfigManager
        at com.google.firebase.perf.internal.FeatureControl.<init>(Unknown Source)
        at com.google.firebase.perf.internal.FeatureControl.zzar(Unknown Source)
        at com.google.firebase.perf.internal.GaugeManager.<init>(Unknown Source)
        at com.google.firebase.perf.internal.GaugeManager.zzbf(Unknown Source)
        at com.google.firebase.perf.internal.SessionManager.<init>(Unknown Source)
        at com.google.firebase.perf.internal.SessionManager.<clinit>(Unknown Source)
        at com.google.firebase.perf.metrics.AppStartTrace.onActivityCreated(Unknown Source)
        at android.app.Application.dispatchActivityCreated(Application.java:189)
        at android.app.Activity.onCreate(Activity.java:903)
        at android.support.v4.app.SupportActivity.onCreate(SupportActivity.java:66)
        at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:321)
        at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:84)
        at com.mypacakage.app.LaunchActivity.onCreate(LaunchActivity.java:58)
        at android.app.Activity.performCreate(Activity.java:5231)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
        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: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)
12-12 09:48:22.491 1339-1568/system_process W/ActivityManager:   
Force finishing activity com.mypacakage.app/.LaunchActivity


This happens Randomly once in a while..  and when ever this happens  app continues to crash  for 4-5 times


following is my gradle content
 dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.25.4'
        classpath 'com.google.firebase:firebase-plugins:1.1.5'
    }


 implementation 'com.google.android.gms:play-services-base:16.0.1'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.android.gms:play-services-plus:16.0.0'
    implementation 'com.google.android.gms:play-services-maps:16.0.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.google.android.gms:play-services-gcm:16.0.0'
    implementation 'com.google.android.gms:play-services-ads:16.0.0'
    implementation 'com.google.android.gms:play-services-analytics:16.0.6'
    implementation 'com.google.android.gms:play-services-places:16.0.0'

 implementation 'com.google.firebase:firebase-core:16.0.6'
    implementation 'com.google.firebase:firebase-perf:16.2.2'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.4'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'


Samuel Stern

unread,
Dec 13, 2018, 12:51:40 PM12/13/18
to fireba...@googlegroups.com
Hi there,

This is a known bug and we are working on a fix, but in the meantime check out this thread on StackOverflow which has a workaround:

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e6c6c89c-9a48-40a5-bb9d-84486a579e9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniele R.

unread,
Dec 14, 2018, 9:50:33 PM12/14/18
to Firebase Google Group
Hi Samuel, 

what workaround are you referring? 

The post you shared talk about "NoClassDefFoundError on com.google.android.gms.internal.firebase-perf.zzw", but OP crashes are about "NoClassDefFoundError: com/google/firebase/perf/internal/RemoteConfigManager".

I'm getting the same crashes, and this is my stacktrace: 

Caused by java.lang.NoClassDefFoundError: com.google.firebase.perf.internal.RemoteConfigManager
       at com.google.firebase.perf.internal.FeatureControl.<init>(Unknown Source:2)
       at com.google.firebase.perf.internal.FeatureControl.zzar(Unknown Source:10)
       at com.google.firebase.perf.internal.GaugeManager.<init>(Unknown Source:4)
       at com.google.firebase.perf.internal.GaugeManager.zzbf(Unknown Source:22)
       at com.google.android.gms.internal.firebase-perf.zzat.<init>(Unknown Source:2)
       at com.google.android.gms.internal.firebase-perf.zzat.zza(Unknown Source:1)
       at com.google.firebase.perf.network.FirebasePerfUrlConnection.instrument(Unknown Source:9)
       at io.branch.referral.network.BranchRemoteInterfaceUrlConnection.doRestfulPost(BranchRemoteInterfaceUrlConnection.java:127)
       at io.branch.referral.network.BranchRemoteInterfaceUrlConnection.doRestfulPost(BranchRemoteInterfaceUrlConnection.java:45)
       at io.branch.referral.network.BranchRemoteInterface.make_restful_post(BranchRemoteInterface.java:136)
       at io.branch.referral.Branch$BranchPostTask.doInBackground(Branch.java:2860)
       at io.branch.referral.Branch$BranchPostTask.doInBackground(Branch.java:2835)
       at android.os.AsyncTask$2.call(AsyncTask.java:295)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:818)

with 

    implementation "com.google.firebase:firebase-core:16.0.6"
    implementation "com.google.firebase:firebase-inappmessaging-display:17.0.4"
    implementation "com.google.firebase:firebase-perf:16.0.0"

    implementation "com.google.android.gms:play-services-gcm:16.0.0"
    implementation "com.google.android.gms:play-services-analytics:16.0.6"

Thank you. 

yogesh....@mindscroll.com

unread,
Jan 10, 2019, 10:15:22 AM1/10/19
to Firebase Google Group

any fixes regarding this??it makes my app freeze...i had to clear my app cache inorder to make it work

S.Company

unread,
Feb 27, 2019, 10:59:31 AM2/27/19
to Firebase Google Group
Any update or workarount for this bug ? I have the same issue and app can crash randomly..

Ali Kazal

unread,
Mar 16, 2019, 5:33:34 PM3/16/19
to Firebase Google Group
Please update to the latest firebase performance monitoring SDK 16.2.4. The firebase team has release a fixed for this issue! :)

Reply all
Reply to author
Forward
0 new messages