尝试运行应用程序时出错

时间:2021-04-01 08:10:51

标签: android

AAPT: 错误: '' 与属性 src (attr) 引用|颜色不兼容。 任何人都可以帮忙 enter image description here

2 个答案:

答案 0 :(得分:1)

在 ImageButton 中为 android:src 添加值,例如:

React-ChartJS-2

答案 1 :(得分:0)

在 ImageView 请输入您要显示的图像。

<ImageButton
    android:id = "@+id/ib_brush
    android:layout_width="50dp"
    android:layout_height="50dp"
    android:src="@drawable/Show your image here"/>