当前位置:网站首页>解决“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
版权声明:本文为博主原创文章,转载请附上博文链接!
边栏推荐
- Pat grade a a1076 forwards on Weibo
- Where are the laravel framework log files stored? How to use it?
- 什么是异步操作
- Conditions for JVM to trigger minor GC
- js在控制台输出菱形
- Babbitt | metauniverse daily must read: does the future of metauniverse belong to large technology companies or to the decentralized Web3 world
- "No input file specified" problem handling
- Processing of inconsistent week values obtained by PHP and MySQL
- 2022 chemical automation control instrument operation certificate test question simulation test platform operation
- PHP 之 Apple生成和验证令牌
猜你喜欢

Original root and NTT 5000 word explanation

Mysql事务

jvm命令归纳

209. Subarray with the smallest length

220. Presence of repeating element III

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

对标注文件夹进行清洗

李沐d2l(四)---Softmax回归

Li Mu D2L (IV) -- softmax regression

Nuxt - Project packaging deployment and online to server process (SSR server rendering)
随机推荐
[arkit, realitykit] turn pictures into 3D models
838. Heap sorting
异常处理机制二
PAT 甲级 A1013 Battle Over Cities
(2006, MySQL server has gone away) problem handling
[MySQL] detailed explanation of redo log, undo log and binlog (4)
力扣刷题,三数之和
Pat grade a a1076 forwards on Weibo
【Mysql】redo log,undo log 和binlog详解(四)
Go intelligent robot alpha dog, alpha dog robot go
The Child and Binary Tree-多项式开根求逆
Simple message mechanism of unity
Elastic APM installation and use
Sending and receiving of C serialport
Object type collections are de duplicated according to the value of an attribute
Where are the laravel framework log files stored? How to use it?
力扣题DFS
unity TopDown角色移动控制
NTT(快速数论变换)多项式求逆 一千五百字解析
838. 堆排序