java.lang.NoSuchMethodError: 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)

Stack Overflow | batati | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java.lang.NoSuchMethodError: No static method getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    Stack Overflow | 7 months ago | batati
    java.lang.NoSuchMethodError: 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)
  2. 0

    NoSuchMethodError: No static method getDrawable in class ContextCompat; or its super classes declaration of 'android.support.v4.content.ContextCompat'

    Stack Overflow | 1 month ago | Abhijit Jagtap
    java.lang.NoSuchMethodError: 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/com.***.***.***-1/base.apk)

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      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)

      at android.support.v7.widget.AppCompatDrawableManager.getDrawable()
    2. Android v7
      AppCompatActivity.onCreate
      1. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:197)
      2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:185)
      3. android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:720)
      4. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:190)
      5. android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:77)
      6. android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:127)
      7. android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:147)
      8. android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:27)
      9. android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:50)
      10. android.support.v7.app.AppCompatDelegateImplV23.<init>(AppCompatDelegateImplV23.java:29)
      11. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:199)
      12. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:181)
      13. android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:521)
      14. android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
      14 frames
    3. zz.yyy.xxx
      AsdActivity.onCreate
      1. zz.yyy.xxx.activities.AsdActivity.onCreate(AsdActivity.java:12)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6904)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
      5. android.app.ActivityThread.access$1100(ActivityThread.java:229)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:148)
      9. android.app.ActivityThread.main(ActivityThread.java:7325)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames