Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IncompatibleClassChangeError crash in Samsung devices with Android 5.x with firebase-config #1109

Closed
gmerinojimenez opened this issue Jan 10, 2020 · 6 comments

Comments

@gmerinojimenez
Copy link

Describe your environment

  • Android Studio version: 3.5.1
  • Firebase Component: firebase-config
  • Component version: 16.5.0

Describe the problem

We're receiving crashes related with reflection in Samsung devices with Android 5.X.

The stacktrace is:

java.lang.IncompatibleClassChangeError: Couldn't find com.google.android.gms.internal.firebase_remote_config.zzcc.value
        at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:659)
        at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641)
        at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170)
        at java.lang.reflect.Field.getAnnotation(Field.java:242)
        at com.google.android.gms.internal.firebase_remote_config.zzbz.zza(zzbz:23)
        at com.google.android.gms.internal.firebase_remote_config.zzbr.<init>(zzbr:31)
        at com.google.android.gms.internal.firebase_remote_config.zzbr.zza(zzbr:8)
        at com.google.android.gms.internal.firebase_remote_config.zzby.<init>(zzby:7)
        at com.google.android.gms.internal.firebase_remote_config.zzw.<init>(zzw:1)
        at com.google.android.gms.internal.firebase_remote_config.zzf.<init>(zzf:2)
        at com.google.android.gms.internal.firebase_remote_config.zzn.<init>(zzn:7)
        at com.google.android.gms.internal.firebase_remote_config.zzdb.<init>(zzdb:1)
        at com.google.android.gms.internal.firebase_remote_config.zzdc.<init>(zzdc:1)
        at com.google.android.gms.internal.firebase_remote_config.zzcz.zza(zzcz:2)
        at com.google.android.gms.internal.firebase_remote_config.zzeq.zzb(zzeq:37)
        at com.google.android.gms.internal.firebase_remote_config.zzeq.zza(zzeq:23)
        at com.google.android.gms.internal.firebase_remote_config.zzeq.zza(zzeq:164)
        at com.google.android.gms.internal.firebase_remote_config.zzet.then(SourceFile:-1)
        at com.google.android.gms.tasks.zzf.run(zzf:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at java.lang.Thread.run(Thread.java:818)

About STR, according to our breadcrumbs, there is not a pattern. The user just starts the app and receives the remote config. At that point the app crashes.

Researching, looks like it's a bug happening on Samsung devices. But it is becoming a top crash for us, so we would like to find a way to fix it.

Thanks in advance.

@google-oss-bot
Copy link
Contributor

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@gmerinojimenez gmerinojimenez changed the title is:issue is:open IncompatibleClassChangeError crash in Samsung devices with Android 5.x with firebase-config Jan 10, 2020
@aguatno
Copy link

aguatno commented Jan 10, 2020

Hi @gmerinojimenez thanks for filling this issue. It appears that you're using an old SDK version. Could you try using the latest version (19.1.0) and see if the issue persists? Otherwise, please send a runnable example so I could identify why this issue occurs. Thanks!

@gmerinojimenez
Copy link
Author

gmerinojimenez commented Jan 10, 2020

Hello @aguatno. We will update the SDK in the next release, but we're not able to reproduce the issue at the office, so waiting for a release to verify will be very slow.

About the runnable example, I can send to you our distributed APK, if you want. But I'm not sure if that is going to be helpful to you

@aguatno
Copy link

aguatno commented Jan 10, 2020

I tried to find similar issues internally, but to no avail. You may try updating your Firebase SDK to the latest version as they have the latest updates and bug fixes.

@google-oss-bot
Copy link
Contributor

Hey @gmerinojimenez. We need more information to resolve this issue but there hasn't been an update in 7 days. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@gmerinojimenez if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Feb 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants