背景设置问题(Android Studio)

背景设置问题(Android Studio),android,button,background,Android,Button,Background,我在安卓工作室遇到了麻烦 当我为我的项目放置一个按钮时,一切都很好。但当我设置背景图像(@drawable)并尝试运行我的应用程序时,我遇到了一个错误(不幸的是,MyApp已经停止) 这个代码怎么了 “我犯了个错误”不是对你犯的任何错误的恰当描述。发布stacktrace。我已经发布了错误:很遗憾,MyApp已停止。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too

我在安卓工作室遇到了麻烦

当我为我的项目放置一个按钮时,一切都很好。但当我设置背景图像(@drawable)并尝试运行我的应用程序时,我遇到了一个错误(不幸的是,MyApp已经停止)



这个代码怎么了

“我犯了个错误”不是对你犯的任何错误的恰当描述。发布stacktrace。我已经发布了错误:很遗憾,MyApp已停止。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:background="@drawable/bg">

<Button
    android:id="@+id/button3"
    style="?android:attr/buttonStyleSmall"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Button 1"
    android:drawableLeft="@drawable/icon"
    android:drawablePadding="10dp"/>