colors xml:"属性缺少Android命名空间前缀"

S L*_*S L 2 xml android

这是我的colors.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="white">#ffffff</color>
</resources>
Run Code Online (Sandbox Code Playgroud)

这给了我以下错误:属性缺少Android命名空间前缀我可以更改什么以使此错误消失?

vin*_*eti 5

尝试添加这个......

<resources xmlns:android="http://schemas.android.com/apk/res/android">
<color name="white">#FFFFFF</color>
</resources>
Run Code Online (Sandbox Code Playgroud)