java.lang.IncompatibleClassChangeError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Method was expected to be of type virtual
    via Stack Overflow by Ido Naveh
    ,
  • GitHub comment 177#221302302
    via GitHub by shaders
    ,
  • GitHub comment 1063#231526842
    via GitHub by mvnerisantos
    ,
    • 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(Unknown Source) at com.google.android.gms.iid.zzd.<init>(Unknown Source) at com.google.android.gms.iid.zzd.<init>(Unknown Source) at com.google.android.gms.iid.InstanceID.zza(Unknown Source) at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source) at com.amazonaws.mobile.push.GCMTokenHelper.<init>(GCMTokenHelper.java:44) at com.amazonaws.mobile.AWSMobileClient.<init>(AWSMobileClient.java:121) at com.amazonaws.mobile.AWSMobileClient.<init>(AWSMobileClient.java:24) at com.amazonaws.mobile.AWSMobileClient$Builder.build(AWSMobileClient.java:101) at com.intap.snspushtest.MainActivity.onCreate(MainActivity.java:43) at android.app.Activity.performCreate(Activity.java:6876) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) at android.app.ActivityThread.access$1100(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    Users with the same issue

    Unknown visitor1 times, last one,
    brunosatriani
    28 times, last one,
    Diogo Jaym
    2 times, last one,
    Unknown visitor1 times, last one,
    Arne Jans
    1 times, last one,
    7 more bugmates