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/app/com.intap.snspushtest-1/base.apk)

Stack Overflow | Ido Naveh | 3 months ago
  1. 0

    Method was expected to be of type virtual

    Stack Overflow | 3 months ago | Ido Naveh
    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/app/com.intap.snspushtest-1/base.apk)
  2. 0

    Crashes on android device with latest android SDK

    GitHub | 7 months ago | cunneen
    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/app/com.example.app-1/base.apk)
  3. 0

    v3.0.3-rc.4 Causes android crash with latest android SDKs

    GitHub | 7 months ago | cunneen
    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/app/com.example.app-1/base.apk)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    App crash after Android Studio 2.1.1 update

    GitHub | 7 months ago | Jojr
    java.lang.IncompatibleClassChangeError: android.support.v4.content.ContextCompat
  6. 0

    GitHub comment 177#221302302

    GitHub | 7 months ago | shaders
    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 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
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.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/app/com.intap.snspushtest-1/base.apk)

    at com.google.android.gms.iid.zzd.zzeC()
  2. com.google.android
    InstanceID.getInstance
    1. com.google.android.gms.iid.zzd.zzeC(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.amazonaws.mobile
    AWSMobileClient$Builder.build
    1. com.amazonaws.mobile.push.GCMTokenHelper.<init>(GCMTokenHelper.java:44)
    2. com.amazonaws.mobile.AWSMobileClient.<init>(AWSMobileClient.java:121)
    3. com.amazonaws.mobile.AWSMobileClient.<init>(AWSMobileClient.java:24)
    4. com.amazonaws.mobile.AWSMobileClient$Builder.build(AWSMobileClient.java:101)
    4 frames
  4. com.intap.snspushtest
    MainActivity.onCreate
    1. com.intap.snspushtest.MainActivity.onCreate(MainActivity.java:43)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:6876)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
    5. android.app.ActivityThread.access$1100(ActivityThread.java:221)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:158)
    9. android.app.ActivityThread.main(ActivityThread.java:7224)
    9 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames