1. 程式人生 > >AndroidStudio Unknown attribute in xml and Namespace not found(xmL 無程式碼提示)

AndroidStudio Unknown attribute in xml and Namespace not found(xmL 無程式碼提示)

編寫xml的時候提示:Unknown attribute in xml and Namespace not found

解決方案

1、

File --->power save mode--->取消勾選

2、

刪除.idea和.iml,然後ReBuild

Finally, deleting .idea folder and all .iml files from the project, restarting Android Studio and rebuilding gradle did the trick.
Autocomplete in XML support library is working again.
Probably checking out files from Version Control or copying all the source files in a new project would do the trick aswell.
這是stackoverflow上大神的回覆,就是刪除.idea資料夾和所有的.iml檔案,然後重啟as,重新build project,經測試時有效果的。

3、解除安裝已有的api版本,重新安裝(耗時可能會比較長)