Skip to content Skip to sidebar Skip to footer

Android.view.inflateexception: Binary Xml File Line #87: Error Inflating Class Textview

I'm attempting to make an App in Android Studio that changes the color of a box based on RGBA values gathered from a set of 4 Seek Bars (one for each RGBA value). Currently I have

Solution 1:

If you look at your log you can see

android.content.res.Resources$NotFoundException: File res/color/abc_search_url_text.xml from drawable resource ID #0x7f0b004e

Meaning it cannot find color/abc_search_url_text

Solution 2:

check it.

android:background="@color/abc_search_url_text"

see your logcat

dalvik.system.NativeStart.main(Native Method)  Caused by: android.content.res.Resources$NotFoundException: File res/color/abc_search_url_text.xml from drawable resource ID #0x7f0b004e at 

Solution 3:

I had similar issue caused by bad implementation made by Sony mobile.

Try adding:

android:hardwareAccelerated="true"

to your manifest file, or simply making minSdkVersion=14+.

The issue I suffered was related to hardware acceleration and the last error shown to me looks like what you are seeing right now.

For long story of this issue, see this.

Post a Comment for "Android.view.inflateexception: Binary Xml File Line #87: Error Inflating Class Textview"