一蕴潦,facets cannot be loaded.You can mark them as ignored to suppress this error notification
今天打開Android Studio妖异,發(fā)現(xiàn)掛了(右邊3.0變成那個死樣子了,懵逼臉)...
打開項目也無法正常編譯炮捧,報錯:facets cannot be loaded.You can mark them as ignored to suppress this error notification。如下圖:
經(jīng)過一番折騰惦银,發(fā)現(xiàn)是插件出了問題:
打開 File --> Other Settings --> Default Settings --> Plugins
發(fā)現(xiàn)有一些插件并沒有勾選咆课,具體是哪些我忘記了末誓,大致如下:
我們將其從新勾選,然后保存书蚪,會重新打開Android Studio喇澡,然后這個問題就解決了。
二殊校,Error:Failed to complete Gradle execution. Cause: Write access is allowed from event dispatch thread only
雖說第一個問題解決了晴玖,可是項目還是無法正常編譯,于是又報了個新錯誤:
Error:Failed to complete Gradle execution. Cause: Write access is allowed from event dispatch thread only
圖忘了截了为流,反正報的錯就是上面這句話呕屎。
錯誤就是:Android Studio的SDK與電腦的JDK版本沖突,我們使用Android Studio自帶的JDK即可敬察。
打開 File --> Other Settings --> Default Project Structure --> SDK Location
把紅框框里的勾選秀睛,就歐了...
慣例,奉上參考文章:
In android studio,cannot load 2 facets-unknown facet type:android and android-gradle
Error:Failed to complete Gradle execution. Cause: Write access is allowed from event dispatch thread only
睡覺了...