cantnot find the declaration of element 'LinearLayout'报错和android studio项目没有sdk
来源:互联网 发布:淘宝直播能在电脑看吗 编辑:程序博客网 时间:2024/05/17 02:20
今天遇到这个问题,开始是布局出错,以为是配置问题,或者自己写的问题,在网上搜了一下,没有找到合理的解决办法。
如下图所示
还有这样
后来查配置发现没有问题,打开原来做好的项目也会出现这样的错误。于是决定新建个项目试试
新建项目的时候是这样子的。于是查看发现缺少SDK设置和SDK的目录,查资料发现原来是
Android Studio 插件Plugin Error找不到的问题
最后通过这样的方式解决
解决办法:
点击File下面的Settings
发现Plugins下面都是红色的 ,比如Android Support (用红色矩形标注的),我报错时点进去查看的时候这个插件就是报红的,然后点击后面的对勾√再重新打上的时候Android Studio就提示你重启,点击弹出的提示框中的按钮“restart”后发现Android Studio重启了。
重启之后就变好了。下图就是变好之后我再次查看的,至于为什么会出现明明有插件却不加载需要手动再选中这样的问题博主也不明白。就抛给其它高手来给答案吧。如果你有插件,就是加载不上或者加载不出来这样的问题可以这么做,但其它问题这种办法就不适用了。
阅读全文
0 0
- cantnot find the declaration of element 'LinearLayout'报错和android studio项目没有sdk
- maven项目报错:cvc-elt.1: Cannot find the declaration of element 'beans'.
- spring项目启动报错 cvc-elt.1: Cannot find the declaration of element 'beans'.
- Spring 配置文件报错: cvc-elt.1: Cannot find the declaration of element ""beans""
- Cannot find the declaration of element 'beans' spring xml文件报错解决办法
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'. 的解决方法
- Cannot find the declaration of element 'beans'. 的解决方法
- cvc-elt.1: Cannot find the declaration of element 'ehcache'.
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- spring框架 错误:Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'MyElement'
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'beans'
- lombok使用
- 一、SQL Server数据库大型应用解决方案总结
- 求帮忙
- js 搜索
- 警报协议
- cantnot find the declaration of element 'LinearLayout'报错和android studio项目没有sdk
- 记录:mysql中关于group by报错
- ITIL事件管理流程关键知识
- SQL常用函数
- linux下流量统计脚本
- Java进阶之jsp指令与动作
- Spark DataFrame 操作命令
- tp5的事物使用
- 企业需要PMO部门吗