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


Samebug tips1

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.


8 months ago
Expert tip

Solutions on the web7

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

Solution icon of stackoverflow
tried to access method android.support.v4.content.ContextCompat.<init>:(Ljava/lang/String;)V from class com.google.android.gms.iid.zzd

Solution icon of github
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)

Solution icon of github
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)

Solution icon of stackoverflow
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)

Solution icon of github
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)

Solution icon of stackoverflow
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.ciangproduction.cp.gcmsample-1/split_lib_dependencies_apk.apk:classes4.dex)

Stack trace

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.<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.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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago