輕鬆完美解決NOTE: One or more layouts are missing the layout_width or layout_height attributes

今天在工作正忙時,studio不爭氣 xml佈局的預覽佈局不顯示 大概是這個樣子

異常 NOTE: One or more layouts are missing the layout_width or layout_height attributes. These are requir
android studio

在這裏插入圖片描述
通過查閱資料 發現這是studio的緩存問題
,具體操作就是關閉android studio,然後打開目錄C:\ Users \ UserName.AndroidStudio3.2 \ system-> caches,刪除caches文件夾,再次打開完美解決

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章