Another Fatal Exception Main In Android Programming
I looked up other similar questions and couldn't find a solution, so here I am. I am a complete beginner in Java and android programming, even though I have a quite good knowledge
Solution 1:
I think the problem is the android:background property of your RelativeLayout:
android:background="@style/AppTheme"Android tells you
Caused by: android.content.res.Resources$NotFoundException: Resource isnot a Drawable (color or path): TypedValue{t=0x1/d=0x7f060001 a=-1 r=0x7f060001}
The system expects the background resource to be a Drawable, not a style. Use style to set a style, or android:background to set a Drawable to be used as the background:
style="@style/AppTheme"Update: From the docs about android:background:
A drawable to use as the background. This can be either a reference to a full drawable resource (such as a PNG image, 9-patch, XML state list description, etc), or a solid color such as "#ff000000" (black).
You can read more about styles and themes in the Android developer guide.
Post a Comment for "Another Fatal Exception Main In Android Programming"