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

前端 未结 12 844
深忆病人
深忆病人 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:02

    I faced this issue in Android Studio 3.2.1 I had to re-import my project after that it works.

    0 讨论(0)
  • 2020-12-01 01:09

    I had the same problem with an ever-increasing number of facets - first 2, then 4, then 5 - and none of the above solutions worked. My solution (Android Studio 3.3, OS X) was to delete ~/Library/Preferences/AndroidStudio3.3/disabled_plugins.txt, which contained org.jetbrains.android and org.jetbrains.maven

    I imagine if you have deliberately disabled plugins then you'll have to disable them again manually, but I was able to load all facets again.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-01 01:14

    I was facing this problem, I tried everything but nothing worked but then I remembered that I updated Android Studio just few hours back and then I enabled the plugins in the Android Studio and restarted it and it worked.

    File -> Settings -> Plugin and then just press ok. It will ask to restart the android studio and please restart it.

    0 讨论(0)
  • 2020-12-01 01:17

    In Android Studio go to

    File -> Settings - > Plugins -> Enable "Android Support" Plugin.

    enter image description here

    0 讨论(0)
  • 2020-12-01 01:19

    'Android Support plugin' will do the trick.

    Check if your Android support plugin is disabled / uninstalled. If so please re-enable / install it.

    Then restart the studio.

    0 讨论(0)
提交回复
热议问题