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
<
I faced this issue in Android Studio 3.2.1 I had to re-import my project after that it works.
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.
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.
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.
In Android Studio go to
File -> Settings - > Plugins -> Enable "Android Support" Plugin.
'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.