Resources$Notfoundexception: Resource Is Not a Drawable (Color or Path)

Resource XX (7f07005e) is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f07005e a=-1 r=0x7f07005e}

I have seen this problem happen when you put xml in wrong drawable folder. for example in drawable-v24 so it crash on API < 21 .

You can paste background_botao_login.xml into drawable without any api version to solve the problem.

Right click on background_botao_login and click on show in folder (file in linux) then copy it and go to previous folder and find drawable and paste in it .

Error inflating XML class - Resource is not a Drawable (color or path)

Your drawable isn't too complicated that it needs to be in a specific API level.

Move it to res/drawable (create this if it doesn't exist).

Or at least make a v16 drawable folder so it corresponds to the minimum API level you've set

android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010076 a=2}

For all those interested, our issue was resolved when removing the following parent attribute, from one of our tags:

parent="@style/Widget.AppCompat.ActionButton.Overflow"

It's a pretty horrendous stack-trace, which didn't resolve to any logical location - we managed to isolate it after many hours of (Delete, build, delete, build...etc)

<style name="OcterActionBarOverflowButton">

Hope this helps!

Resource is not a Drawable

It is because my color resource file is under \res\values-21 folder, Now moved it to \res\values\ folder, Now app works fine. thank you friends.

CircleImageView on older versions. Resources$NotFoundException: Resource is not a Drawable (color or path):

The real error is android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path) it means your using vector image which is not supported my the android OS on your device.

Android 4.4 (API level 20) and lower doesn't support vector drawables. If your minimum API level is set at one of these API levels, you have two options when using Vector Asset Studio: generate Portable Network Graphic (PNG) files (the default) or use the Support Library.

If you want to use vector drawables only, you can use Android Support Library 23.2 or higher. This technique requires a change to your build.gradle file before you run Vector Asset Studio, as described in Support Library Backward Compatibility. The VectorDrawableCompat class in the Support Library allows you to support VectorDrawable in Android 2.1 (API level 7) and higher.
This Link will help you more.

Resource is not a Drawable Resources$NotFoundException

Make sure your loginpanel and numpanel1 images is inside drawable folder not inside drawable-v24 folder

move your both images loginpanel and numpanel1 inside drawable

just copy-paste from drawable-v24 to drawable folder it will work



Related Topics



Leave a reply



Submit