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

后端 未结 3 744
借酒劲吻你
借酒劲吻你 2021-02-18 23:11

When I am adding android:id/background to the namespace, Lint complains that it \"Cannot Resolve Symbol\" even though I am requesting to add it rather than call it. The code wor

3条回答
  •  误落风尘
    2021-02-18 23:24

    It seems you are using an extra +.

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

提交回复
热议问题