补充回答:已经知道原因了。是因为你引用的drawable资源无法被android studio显示在左边栏,所以as很任性的选择了红色感叹号来发泄它的不满。苦逼的是我们这些程序员。。换句话说:it's not an error from the code 放心吧。 以下是stackoverflow的解释: http://stackoverflow.com/questions/33029295/android-studio-shows-red-exclamation-at-drawable-attribute
看提示什么错误,我遇到的这样的情况一般是因为我放的.9
鼠标放到黄色的灯泡上可以看到提示,再根据内容做相应的调整
你的linearlayout不是封闭的,用下面的试试,注意最后一行
<LinearLayout
兄台,我也出现了这问题,怎么解决的
我的现在也有!!
我的drawable也是出现,也能用,就没处理
楼主是怎么解决的?
补充回答:已经知道原因了。是因为你引用的drawable资源无法被android studio显示在左边栏,所以as很任性的选择了红色感叹号来发泄它的不满。苦逼的是我们这些程序员。。换句话说:it's not an error from the code 放心吧。
以下是stackoverflow的解释:
http://stackoverflow.com/questions/33029295/android-studio-shows-red-exclamation-at-drawable-attribute