java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dmdmax.testing/com.dmdmax.testing.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f020052

Stack Overflow | Farhan Ali | 2 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
    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'"
  2. 0

    Odd Resource$NotFoundException

    Stack Overflow | 4 months ago | RU92Z
    java.lang.RuntimeException: Unable to start activity ComponentInfo{xxxxxxxxxxx.xxxxxxxxxxx.xxxxxxx}: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f020052
  3. 0

    inflate a view without XML in Android

    Stack Overflow | 2 years ago | akash kubavat
    java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package.class}: android.content.res.Resources$NotFoundException: Resource ID #0x1d97b
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to set appcompat windowBackground to textview

    Stack Overflow | 2 years ago | Sai Kiran
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.MainActivity}: android.content.res.Resources$NotFoundException: File res/layout-v16/music_popup.xml from drawable resource ID #0x7f04001a at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) 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:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: android.content.res.Resources$NotFoundException: File res/layout-v16/music_popup.xml from drawable resource ID #0x7f04001a at android.content.res.Resources.loadDrawableForCookie(Resources.java:2479) at android.content.res.Resources.loadDrawable(Resources.java:2381) at android.content.res.Resources.getDrawable(Resources.java:787) at android.content.Context.getDrawable(Context.java:403) at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3630) at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3677) at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1943) at android.support.v7.app.AppCompatDelegateImplV7.onCreate(AppCompatDelegateImplV7.java:148) at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:59) at com.example.MainActivity.onCreate(MainActivity.java:107) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
  6. 0

    Issue 201835 - android - build errors - Error:(67, 54) No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha'). - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 9 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mypackage.android/com.mypackage.android.MyActivity}: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020013
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. org.xmlpull.v1.XmlPullParserException

    Binary XML file line #17: invalid drawable tag vector

    at android.graphics.drawable.Drawable.createFromXmlInner()
  2. Android Platform
    Resources.getDrawable
    1. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:897)
    2. android.graphics.drawable.Drawable.createFromXml(Drawable.java:837)
    3. android.content.res.Resources.loadDrawable(Resources.java:2092)
    4. android.content.res.Resources.getDrawable(Resources.java:695)
    4 frames
  3. Android Support v4
    ContextCompat.getDrawable
    1. android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:374)
    1 frame
  4. Android v7
    AppCompatActivity.onCreate
    1. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:200)
    2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188)
    3. android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:723)
    4. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:193)
    5. android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:81)
    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:53)
    10. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:205)
    11. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:185)
    12. android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:525)
    13. android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:74)
    13 frames
  5. com.dmdmax.testing
    MainActivity.onCreate
    1. com.dmdmax.testing.MainActivity.onCreate(MainActivity.java:12)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5133)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
    5. android.app.ActivityThread.access$600(ActivityThread.java:141)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:5103)
    9 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame