The color “baseBlac in values has no declaration in the base values folder this can lead to crash

时间:2024-03-28 14:49:03

在module lib中定义了如下资源

The color “baseBlac in values has no declaration in the base values folder this can lead to crash

然后就报了这个错误

"The color “baseBlac” in values has no declaration in the base values folder; this can lead to crash

导致我无法通过R.color.baseBlack引用

 

解决办法

The color “baseBlac in values has no declaration in the base values folder this can lead to crash

此时,你会发现可以通过R.color.baseBlack引用了

但有个小问题,就是colors文件失去了代码高亮的效果,但并不影响运行,只能将就下了。