一,facets cannot be loaded.You can mark them as ignored to suppress this error notification
今天打开Android Studio,发现挂了(右边3.0变成那个死样子了,懵逼脸)...
打开项目也无法正常编译,报错:facets cannot be loaded.You can mark them as ignored to suppress this error notification。如下图:
经过一番折腾,发现是插件出了问题:
打开 File --> Other Settings --> Default Settings --> Plugins
发现有一些插件并没有勾选,具体是哪些我忘记了,大致如下:
我们将其从新勾选,然后保存,会重新打开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
睡觉了...