当前位置:网站首页>解决“NOTE: One or more layouts are missing the layout_width or layout_height attributes.”
解决“NOTE: One or more layouts are missing the layout_width or layout_height attributes.”
2022-07-26 09:18:00 【LHBTM】
布局无法加载,xml也没有错误,提示NOTE: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts(转载文章)
关闭Android Studio
进入C:\Users\UserName\ .android目录,将build-cache重命名为buildcache.bak
进入C:\Users\UserName\ .AndroidStudio3.2\system 目录
(1) caches 重命名为 caches.bak
(2) compiler 重命名为 compiler.bak
(3) compile-server 重命名为 compile-server.bak
(4) conversion 重命名为 conversion.bak
(5) external_build_system 重命名为 external_build_system.bak
(6) frameworks 重命名为 frameworks.bak
(7) gradle 重命名为 gradle.bak
(8) resource_folder_cache 重命名为 resource_folder_cache.bak
启动Android Studio打开你的项目,问题就解决了
以下是stackoverflow原答案:
The issue is resolved by these changes:
Close Android Studio
Go to C:\Users\UserName.android and rename the build-cache folder to buildcache.bak
Go to C:\Users\UserName.AndroidStudio3.2\system and rename these folders
(1) caches to caches.bak
(2) compiler to compiler.bak
(3) compile-server to compile-server.bak
(4) conversion to conversion.bak
(5) external_build_system to external_build_system.bak
(6) frameworks to frameworks.bak
(7) gradle to gradle.bak
(8) resource_folder_cache to resource_folder_cache.bak
Open the Android Studio and open your project again.
---------------------
作者:IT醉猫
来源:CSDN
原文:https://blog.csdn.net/u012833250/article/details/83785298
版权声明:本文为博主原创文章,转载请附上博文链接!
边栏推荐
- [MySQL] detailed explanation of MySQL lock (III)
- 力扣链表题
- volatile 靠的是MESI协议解决可见性问题?(下)
- 布隆过滤器
- Nuxt - 项目打包部署及上线到服务器流程(SSR 服务端渲染)
- 2B and 2C
- Windows通过命令备份数据库到本地
- Stm32+mfrc522 completes IC card number reading, password modification, data reading and writing
- 220. Presence of repeating element III
- 巴比特 | 元宇宙每日必读:元宇宙的未来是属于大型科技公司,还是属于分散的Web3世界?...
猜你喜欢

性格测试系统v1.0

Summary of common activation functions for deep learning

What is the difference between NFT and digital collections?

论文笔记: 知识图谱 KGAT (未完暂存)

【Mysql】redo log,undo log 和binlog详解(四)

2022茶艺师(中级)特种作业证考试题库模拟考试平台操作

JVM command induction

【Mysql】认识Mysql重要架构(一)

Grain College of all learning source code

Study notes of dataX
随机推荐
CF1481C Fence Painting
Nuxt - 项目打包部署及上线到服务器流程(SSR 服务端渲染)
Summary of common activation functions for deep learning
"No input file specified" problem handling
对象型的集合按某个属性的值进行去重
Advanced mathematics | Takeshi's "classic series" daily question train of thought and summary of error prone points
Apple generated and verified tokens for PHP
JS - DataTables 关于每页显示数的控制
谷粒学院的全部学习源码
SQL入门——组合表
[arkit, realitykit] turn pictures into 3D models
Announcement | FISCO bcos v3.0-rc4 is released, and the new Max version can support massive transactions on the chain
Qt | 关于如何使用事件过滤器 eventFilter
[use of final keyword]
聪明的美食家 C语言
Cat安装和使用
Sending and receiving of C serialport
Elastic APM installation and use
redis原理和使用-基本特性
服务器内存故障预测居然可以这样做!