Android Studio 中Couldn't resolve resource
来源:互联网 发布:石狮淘宝培训中心 编辑:程序博客网 时间:2024/05/17 05:54
参考这里: http://blog.csdn.net/dong19870625/article/details/50833433
原文:
在开发项目中,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
---------------------------------------------
我也是遇到差不多的,不过是找不到相关的style,在预览那里无法正常显示,但是运行起来是正常的.无论refresh还是rebuild都消除不了.按照上面的做法就ok了.
阅读全文
1 0
- Android Studio 中Couldn't resolve resource
- Couldn't resolve resource android studio
- “Couldn't resolve resource…” Android Studio
- Android开发技术点3——Android Studio 中Couldn't resolve resource ****(** similar errors not shown)解决方案
- 解决android下Couldn't resolve resource @string/xx 问题
- 解决android下Couldn't resolve resource @string/xx 问题
- Couldn't resolve resource @drawable/homebackground
- Android Studio中Can't resolve symbol. Validates resource references inside Android XML files
- Couldn't resolve resource @id/pass问题的解决
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- Couldn't resolve host 'android.git.kernel.org'
- Android Studio:couldn't find .so文件
- Couldn't resolve resource @style/MMTabButton(或@String/app_name等)的解决方法
- 关于AS的布局Rendering Problems Couldn't resolve resource @drawable/position_user问题
- 加载SearchvView碰到的问题Couldn't resolve resource @id/search_edit_frame
- android studio 启动后activity_main.xml的design下报错rendering problems can't resolve resource……
- System.Threading.Thread类方法
- ROS bookmarks
- Bzoj2326:HNOI2011-数学作业
- ASP.net基础编程2—母版嵌套
- git温习之----仓库与分支的理解
- Android Studio 中Couldn't resolve resource
- BZOJ 3175: [Tjoi2013]攻击装置 二分图最大独立集
- 如何快速转载CSDN中的博客
- 客户端与服务端的sessionId的区别
- hbase参数配置优化
- 最长回文子串
- android ethernet
- 抽象类
- java进程cpu过高原因整理