“Cannot Resolve Symbol” Error when using android:id=“@+android:id/my_id”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 23:28:36

If you are creating your own id:

"@+id/your_new_id"

if you are accessing your already created id

"@id/your_old_id"

if you are trying to access Android's system created id

"@android:id/system_id"

you can see the difference, if you are creating your own id then you have to add +. Since you are accessing system ID so you don't have to add +

It seems you are using an extra +.

You should remove it, replace as follows @+android:id/background to @android:id/background.

Try to replace @+android:id by @+id and see if it works!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!