java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzx; or its super classes (declaration of 'com.google.android.gms.common.util.zzx' appears in /data/data/com.shafi.app/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-9.8.0_e816c785e83e97704fbd262674378e0e6ad734ab-classes.dex)

GitHub | shafips | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Android app crashes after installation

    GitHub | 4 months ago | shafips
    java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzx; or its super classes (declaration of 'com.google.android.gms.common.util.zzx' appears in /data/data/com.shafi.app/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-9.8.0_e816c785e83e97704fbd262674378e0e6ad734ab-classes.dex)
  2. 0

    Android runtime exception

    GitHub | 6 months ago | yankopetrov
    java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzx; or its super classes (declaration of 'com.google.android.gms.common.util.zzx' appears in /data/app/com.app.my-1/base.apk)
  3. 0
    samebug tip
    Update Google Play Services to the latest version and android support library to latest version. 9.8 for google play services and 25.0.0 for the android support libraries seems to make it work.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UncaughtException: java.lang.IncompatibleClassChangeError

    Stack Overflow | 11 months ago | shailesh ojha
    java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.android.gms.iid.zzd' appears in /data/data/com.dp.needdepartmentalstore/files/instant-run/dex/slice-com.google.android.gms-play-services-iid-9.0.0_e1052c945fd50ca8f379bb7d2402b9b1cd0dcbb4-classes.dex)
  6. 0

    Android After SKIPPED_LOGIN Action Error hasUnreadNotifications

    GitHub | 6 months ago | SerkanDayicik
    java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.facebook.f8-1/base.apk)

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzx; or its super classes (declaration of 'com.google.android.gms.common.util.zzx' appears in /data/data/com.shafi.app/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-9.8.0_e816c785e83e97704fbd262674378e0e6ad734ab-classes.dex)

      at com.google.android.gms.iid.zzd.zzkq()
    2. com.google.android
      InstanceID.getInstance
      1. com.google.android.gms.iid.zzd.zzkq(Unknown Source)
      2. com.google.android.gms.iid.zzd.<init>(Unknown Source)
      3. com.google.android.gms.iid.zzd.<init>(Unknown Source)
      4. com.google.android.gms.iid.InstanceID.zza(Unknown Source)
      5. com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
      5 frames
    3. com.dieam.reactnativepushnotification
      RNPushNotificationRegistrationService.onHandleIntent
      1. com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService.onHandleIntent(RNPushNotificationRegistrationService.java:22)
      1 frame
    4. Android Platform
      HandlerThread.run
      1. android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67)
      2. android.os.Handler.dispatchMessage(Handler.java:102)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames