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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web1902

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 web
tried to access method cfanvo.SimpleUnit.init(Ljava/lang/String;Ljava/lang/String;D)V from class UnitTest

Solution icon of web
tried to access method cfanvo.SimpleUnit.init(Ljava/lang/String;Ljava/lang/String;D)V from class UnitTest

Solution icon of web
tried to access method cfanvo.SimpleUnit.init(Ljava/lang/String;Ljava/lang/String;D)V from class UnitTest

Solution icon of web
tried to access method cfanvo.SimpleUnit.init(Ljava/lang/String;Ljava/lang/String;D)V from class UnitTest

Solution icon of stackoverflow
via Stack Overflow by Wukon
, 10 months ago
tried to access method com.android.sdklib.AndroidVersion$AndroidVersionException.(Ljava/lang/String;Ljava/lang/Throwable;)V from class com.android.sdklib.AndroidVersionHelper

Solution icon of stackoverflow
via Stack Overflow by Hemal Shah
, 7 months ago
tried to access method com.android.sdklib.AndroidVersion$AndroidVersionException.(Ljava/lang/String;Ljava/lang/Throwable;)V from class com.android.sdklib.AndroidVersionHelper

Solution icon of stackoverflow
tried to access method java.security.Provider.<init>(Ljava/lang/String;DLjava/lang/String;)V from class ECCKey

Solution icon of oraclecommunity
via Oracle Community by 843851, 1 month ago
tried to access method org.objectweb.asm.util.CheckMethodAdapter.checkInternalName(Ljava/lang/String;Lj ava/lang/String;)V from class org.objectweb.asm.util.AltCheckClassAdapter

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, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago