查看遭到举报内CardView [英] Views getting flagged inside CardView

查看:176
本文介绍了查看遭到举报内CardView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与我的Andr​​oid工作室的一切工作正常,直到我碰到这个奇怪的事情来了,当我加入查看 CardView 的IDE警告我,告诉例如TextView的是这里不允许。我曾经做过这样一个前一千次,这是绝对的罚款。

Everything with my android studio was working fine until I came across this weird thing that when I add Views inside a CardViewthe IDE is warning me telling that for example "TextView is not allowed here". I have done this a thousand times before and It was absolutely fine.

下面是我曾尝试结果的事情的清单
1.重新启动IDE。结果
2.重新启动整个系统。结果
3.试过的Invalidate缓存/重新启动的事情。结果
4.清洗peoject。结果
5.验证支持库版本和文件搜索
6.撞了我的头撞在墙上。

Here is a List of the things I have tried
1. Restarted the IDE.
2. Restarted the entire system.
3. Tried the Invalidate Caches/Restart thing.
4. Cleaned the peoject.
5. Verified the support library version and files
6. Banged my head against the wall.

毫无效果,这里有一些额外的细节

Nothing worked, here are some additional details

IDE 1.3.1版本,SDK工具使用API​​ 22全面更新

IDE version 1.3.1, SDK tools is using API 22 fully updated

还有一件事是建议不在CardView下以XML格式显示,我想这两个问题是相关的。

And one more thing is suggestions are not shown under the CardView in XML, i guess both these problems are related.

我已经看到了类似的问题<一href=\"https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&sqi=2&ved=0CB0QFjAAahUKEwigzLPeiLDHAhXRH44KHXGTANE&url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F27440887%2Flinearlayout-flagged-if-used-in-cardview&ei=1szRVaCJAtG_uATxpoKIDQ&usg=AFQjCNEgPmF6Q9dvK_Woo9oL2BkUTFEjzg&sig2=XZg2fJV7E0YWYJpu_D0GXA&bvm=bv.99804247,d.c2E\"相对=nofollow>这里,但遗憾的是它并没有帮助我....请人找到这个问题的修复...

I have seen a similar question here, but unfortunately it didn't help me.... Please someone find a fix for this problem...

推荐答案

每天花费在的IntelliĴIDEA文档搜索周围好以后,我能找到这个问题的解决方案。它有损坏的项目元数据和其他与项目有关的数据是跨装入的Andr​​oid Studio项目共同做的,所以我自然刚刚​​打开,我已经备份的时候不存在这个问题我项目的备份。我解决了它......

Well after spending a day searching around in the Intelli J IDEA docs, I was able to find a solution for this problem. It has to do with the corrupted project metadata and other project related data that is common across projects loaded into Android Studio, so naturally I just opened a backup of my project that I had backed up when the problem did not exist. And I solved it....

希望这会帮助你...

Hope this'll help you...

这篇关于查看遭到举报内CardView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆