In android studio,cannot load 2 facets-unknown facet type:android and android-gradle

前端 未结 12 887
深忆病人
深忆病人 2020-12-01 00:37

When I open android studio I am getting an error- \"Error loading project: Cannot load 2 facets. When I clicked to see the error the following appeared

<
12条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 01:14

    For me I went to Settings -> Plugins and de-selected Gradle then immediately re-selected it. Android Studio then asked if I wanted to enable Groovy so I said yes and let it restart and now everything is happy again! (it was checked, but clearly somewhere deep down not truly enabled, so toggling the check-box sorted it)

    Not sure if my cause was installing Flutter, but I did have to disable the Flutter plugin before I could build again.

提交回复
热议问题