Cannot resolve symbol @android:color/white anymore

于阔源 picture 于阔源 · Dec 7, 2017 · Viewed 7.5k times · Source

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

Answer

Null Pointer Exception picture Null Pointer Exception · Feb 15, 2018

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"