您的位置:首页 > 移动开发 > Android开发

Android开发技术点3——Android Studio 中Couldn't resolve resource ****(** similar errors not shown)解决方案

2016-03-09 10:41 567 查看
在开发项目中,xml文件突然出现

Couldn’t resolve resource @color/title_color (58 similar errors not shown)问题,让人措手不及,将颜色等资源文件直接写上就没有问题,但是不是根本解决问题的方法,后来在stack overflow上发现可以这样说:

Android Studio just gets crazy. But a restart ain’t always enough.

Invalidate your caches and restart.

File -> Invalidate Caches / Restart… -> Invalidate and Restart

按照上述做法,效果不错,解决了我的问题,原来AS本身也有缓存

参考:http://stackoverflow.com/questions/8390733/relativelayout-couldnt-resolve-resource-android
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android studio