关于Androidstudio开发资源报错

xiaoxiao2025-04-18  9

AGPBI: {"kind":"error","text":"Resource is not public. (at \u0027color\u0027 with value \u0027@android:color/dim_foreground_light_inverse\u0027).","sources":[{"file":"xxxxxxxxxxxxe-xxxxxxxxxxxxxxx\\res\\drawable\\dash_line.xml","position":{"startLine":9,"startColumn":23,"startOffset":327,"endColumn":66,"endOffset":370}}],"original":"","tool":"AAPT"}

 

原因是:低级且致命的错误

资源文件中颜色的值直接引用别的资源的颜色名,直接报错。

换成色值即可

android:color="#bebebe"
转载请注明原文地址: https://www.6miu.com/read-5028578.html

最新回复(0)