java.lang.NoSuchMethodError

No virtual method getColor(I)I in class Lcom/android/etadetroit/MainActivity; or its super classes (declaration of 'com.android.etadetroit.MainActivity' appears in /data/app/com.android.etadetroit-1/base.apk:classes32.dex)


Solutions on the web6106

Solution icon of github
No virtual method getColor(I)I in class Lcom/android/etadetroit/MainActivity; or its super classes (declaration of 'com.android.etadetroit.MainActivity' appears in /data/app/com.android.etadetroit-1/base.apk:classes32.dex)

Solution icon of github
No virtual method getColor(I)I in class Lcom/imnjh/imagepickersample/app/PickerApplication; or its super classes (declaration of 'com.imnjh.imagepickersample.app.PickerApplication' appears in /data/data/com.imnjh.imagepickersample/files/instant-run/dex/slice-slice_3-classes.dex)

Solution icon of github
via GitHub by biloaramin
, 6 months ago
No virtual method getColor(I)I in class Landroid/content/Context; or its super classes (declaration of 'android.content.Context' appears in /system/framework/framework.jar:classes2.dex)

Solution icon of stackoverflow
No static method getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in /data/app/fi.solita.yellowtab-1/base.apk:classes32.dex)

Solution icon of web
via openclassrooms.com by Unknown author, 1 year ago
No virtual method checkSelfPermission(Ljava/lang/String;)I in class Lcom/example/antoine/gps/MainActivity; or its super classes (declaration of 'com.example.antoine.gps.MainActivity' appears in /data/app/com.example.antoine.gps-1/base.apk)

Solution icon of stackoverflow
No virtual method checkSelfPermission(Ljava/lang/String;)I in class Lcom/example/hpi5/bluetooth/MainActivity; or its super classes (declaration of 'com.example.hpi5.bluetooth.MainActivity' appears in /data/app/com.example.hpi5.bluetooth-1/base.apk)

Solution icon of web
via androidrefer.com by Unknown author, 11 months ago
No virtual method setTag(Ljava/lang/Object;)Lcom/android/volley/Request; in class Lcom/android/volley/Request; or its super classes (declaration of 'com.android.volley.Request' appears in /data/app/com.shrishyl.productslistview-1/base.apk:classes9.dex)

Solution icon of github
No virtual method checkSelfPermission(Ljava/lang/String;)I in class Lcom/google/android/apps/watchme/StreamerActivity; or its super classes (declaration of 'com.google.android.apps.watchme.StreamerActivity' appears in /data/data/com.google.android.apps.watchme/files/instant-run/dex/slice-slice_2-classes.dex)

Solution icon of stackoverflow
via Stack Overflow by Arjun
, 1 month ago
No virtual method setTag(Ljava/lang/Object;)Lcom/android/volley/Request; in class Lcom/android/volley/Request or its super classes (declaration of 'com.android.volley.Request'; appears in /data/app/com.example.rninja4.rookie-1/split_lib_dependencies_apk.apk:classes6.dex)

Solution icon of github
No interface method read([BII)I in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.zibann.littlehome.debugjihae-1/base.apk:classes2.dex)

Stack trace

  • java.lang.NoSuchMethodError: No virtual method getColor(I)I in class Lcom/android/etadetroit/MainActivity; or its super classes (declaration of 'com.android.etadetroit.MainActivity' appears in /data/app/com.android.etadetroit-1/base.apk:classes32.dex) at com.android.etadetroit.MainActivity.onCreate(MainActivity.java:73) at android.app.Activity.performCreate(Activity.java:6010) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413) at android.app.ActivityThread.access$800(ActivityThread.java:155) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) 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:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.