java.lang.IllegalAccessError: tried to access method android.support.v4.content.ContextCompat.:(Ljava/lang/String;)V from class com.google.android.gms.iid.zzd

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

Solutions on the web

via Stack Overflow by Shailendra Sachan
, 11 months ago
tried to access method android.support.v4.content.ContextCompat.:(Ljava/lang/String;)V from class com.google.android.gms.iid.zzd
via Stack Overflow by erol yeniaras
, 1 year ago
tried to access method android.support.v4.content.ContextCompat.<init>:(Ljava/lang/String;)V from class com.google.android.gms.iid.zzd
via GitHub by SerkanDayicik
, 1 year ago
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)
via GitHub by clamentsanz
, 4 months ago
Method 'void android.support.v4.content.ContextCompat.()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/my.app-1/base.apk:classes2.dex)
via Stack Overflow by J&#233;w&#244;m&#39;
, 5 months ago
Method 'void android.support.v4.content.ContextCompat.()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/my.app-1/base.apk:classes2.dex)
via GitHub by hy9be
, 6 months ago
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.clover_studio.democloverapp-1/split_lib_dependencies_apk.apk:classes19.dex)
java.lang.IllegalAccessError: tried to access method android.support.v4.content.ContextCompat.:(Ljava/lang/String;)V from class com.google.android.gms.iid.zzd
at com.google.android.gms.iid.zzd.zzdL(Unknown Source)
at com.google.android.gms.iid.zzd.(Unknown Source)
at com.google.android.gms.iid.zzd.(Unknown Source)
at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
at com.dyulok.android.organizerapp.gcmservices.GCMRegistrationIntentService.registerGCM(GCMRegistrationIntentService.java:44)
at com.dyulok.android.organizerapp.gcmservices.GCMRegistrationIntentService.onHandleIntent(GCMRegistrationIntentService.java:34)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:149)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.