Cannot resolve symbol @android:color/white anymore

11.9k views Asked by At

enter image description here

But the application is not compiling.

I don't know what can I do?

  • I am try to clean project
  • I am try build project
  • I am restart mac

And so on,but this steps don't help me. Who can help me? Thank you

3

There are 3 answers

1
Raunak Khandelwal On

Simply write this:

android:background="#ffffff"
1
Tushar Mate On

If the resource already exists in colors.xml file, try Invalid Caches / Restart

0
Null Pointer Exception On

you can give color manually like

"#ffffff"

or create color in colors file like

<color name="white">#FFFFFF</color>

and then

    android:background="@color/white"