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)

GitHub | David-Molloy | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    App Crashes when using withSliderBackgroundColor in Android 5.1

    GitHub | 4 months ago | David-Molloy
    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)
  2. 0
    samebug tip
    As of SDK 23, you have to call this method with ContextCompat.getColor(context, R.color.my_color) so it works with previous API as well. Also, you have to add the support V4 library to your dependencies: "compile 'com.android.support:support-v4:23.0.1'"
  3. 0

    pagerslidingtabstrip No virtual method getPageTitle(I)

    Stack Overflow | 2 years ago | TychoTheTaco
    java.lang.NoSuchMethodError: No virtual method getPageTitle(I)Ljava/lang/CharSequence; in class Landroid/support/v4/view/PagerAdapter; or its super classes (declaration of 'android.support.v4.view.PagerAdapter' appears in /data/app/com.tycho.hotspothelper-1/base.apk:classes2.dex)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [ANDROID] Localisation

    openclassrooms.com | 2 years ago
    java.lang.NoSuchMethodError: 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)
  6. 0

    Asynchronous Loopj - AsyncHttpClient: missing method "setCoookieStore()"

    Stack Overflow | 1 year ago | Afflatus
    java.lang.NoSuchMethodError: No virtual method setCookieStore(Lorg/apache/http/client/CookieStore;)V in class Lcom/loopj/android/http/AsyncHttpClient; or its super classes (declaration of 'com.loopj.android.http.AsyncHttpClient' appears in /data/app/com.empatica.empalinksample-2/base.apk)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.android.etadetroit
      MainActivity.onCreate
      1. com.android.etadetroit.MainActivity.onCreate(MainActivity.java:73)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6010)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
      5. android.app.ActivityThread.access$800(ActivityThread.java:155)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5343)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames