Error when trying to run mobile app using Android Studio


#1

Whenever I try to run my app using Android Studio on a physical device, I’m receiving this error:

E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                Process: com.id1gjzd7jsttaev1yvn0q6, PID: 25521
                                                                                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.android.gms.iid.zzd.zzeb(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.google.android.gms.iid.InstanceIDListenerService.zzp(Unknown Source)
                                                                                    at com.google.android.gms.iid.InstanceIDListenerService.onStartCommand(Unknown Source)
                                                                                    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3307)
                                                                                    at android.app.ActivityThread.access$2200(ActivityThread.java:177)
                                                                                    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1546)
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                    at android.os.Looper.loop(Looper.java:145)
                                                                                    at android.app.ActivityThread.main(ActivityThread.java:5942)
                                                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                                                    at java.lang.reflect.Method.invoke(Method.java:372)
                                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

Any ide about what may be causing it and how can I fix it?

Thanks in advance!