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)

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    how fix bug with Firebase in android

    Stack Overflow | 9 months ago | Jaive Torres Pineda
    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)
  2. 0

    java.lang.IncompatibleClassChangeError causes app to crash, using Firebase and Google Play Services

    Stack Overflow | 5 months ago | Amrut Bidri
    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.firebase.iid.zzg' appears in /data/app/com.winjit.musiclib.sample-1/base.apk)

    1 unregistered visitors

    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 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)

      at com.google.firebase.iid.zzg.zzeC()
    2. com.google.firebase
      zzb.onStartCommand
      1. com.google.firebase.iid.zzg.zzeC(Unknown Source)
      2. com.google.firebase.iid.zzg.<init>(Unknown Source)
      3. com.google.firebase.iid.zzg.<init>(Unknown Source)
      4. com.google.firebase.iid.zzd.zzb(Unknown Source)
      5. com.google.firebase.iid.FirebaseInstanceIdService.zziB(Unknown Source)
      6. com.google.firebase.iid.FirebaseInstanceIdService.zzA(Unknown Source)
      7. com.google.firebase.iid.zzb.onStartCommand(Unknown Source)
      7 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3916)
      2. android.app.ActivityThread.access$2300(ActivityThread.java:198)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1780)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:145)
      6. android.app.ActivityThread.main(ActivityThread.java:6843)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
      2 frames