当前位置:网站首页>解决“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
版权声明:本文为博主原创文章,转载请附上博文链接!
边栏推荐
- Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
- Use of off heap memory
- Polynomial open root
- JVM触发minor gc的条件
- Mysql事务
- HBuilderX 运行微信开发者工具 “Fail to open IDE“报错解决
- 围棋智能机器人阿法狗,阿尔法狗机器人围棋
- Babbitt | metauniverse daily must read: does the future of metauniverse belong to large technology companies or to the decentralized Web3 world
- codeforces dp合集
- pycharm 打开多个项目的两种小技巧
猜你喜欢
【Mysql】redo log,undo log 和binlog详解(四)
Mysql事务
李沐d2l(六)---模型选择
unity TopDown角色移动控制
ext3文件系统的一个目录下,无法创建子文件夹,但可以创建文件
[MySQL] detailed explanation of MySQL lock (III)
Selection and practice of distributed tracking system
分布式跟踪系统选型与实践
NTT (fast number theory transformation) polynomial inverse 1500 word analysis
ext4文件系统打开了DIR_NLINK特性后,link_count超过65000的后使用link_count=1来表示数量不可知
随机推荐
[arkit, realitykit] turn pictures into 3D models
Li Mu D2L (VI) -- model selection
NFT与数字藏品到底有何区别?
2B和2C
Mysql事务
CF1481C Fence Painting
巴比特 | 元宇宙每日必读:元宇宙的未来是属于大型科技公司,还是属于分散的Web3世界?...
jvm命令归纳
2022 tea artist (intermediate) special operation certificate examination question bank simulated examination platform operation
Elastic APM installation and use
Redis principle and usage - installation and distributed configuration
高数 | 武爷『经典系列』每日一题思路及易错点总结
Tornado multi process service
[leetcode database 1050] actors and directors who have cooperated at least three times (simple question)
The essence of attack and defense strategy behind the noun of network security
对象型的集合按某个属性的值进行去重
Study notes of dataX
Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
[use of final keyword]
SQL入门——组合表