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

前端 未结 12 843
深忆病人
深忆病人 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 00:54

    This problem occured when i'd updated Android Studio.

    In case nothing from other answers works, you don't have another option, except removing broken settings and making clean setup.

    So what i am suggesting:

    • Use Settings Repository Feature to store personal IDE settings
    • close studio
    • remove .AndroidStudioX folder from user folder
    • re-launch studio, do not copy settings from previous version (because settings probably broken and auto-import couldn't import it well)
    • import personal settings from Settings Repository
    0 讨论(0)
  • 2020-12-01 00:56

    For me I had to uncheck the plugin Android APK Support. I clicked Apply and then Ok to close the window. Android Studio prompted me to restart the program, and the program restarted. I checked the Android APK Support plugin again and restarted the program. And then I selected File -> Sync Project with Gradle Files

    Then it worked just fine.

    0 讨论(0)
  • 2020-12-01 00:59

    File, Then Settings->Plugin->Enable/Renable Plugin --> Apply --> Restart

    0 讨论(0)
  • 2020-12-01 00:59
    1. Go To ->File->Settings->Plugins->disable/enable Android Support Plugins->Press Ok Just re-enable Android Support plugin. Then it will ask to restart. Restart them thats it
    0 讨论(0)
  • 2020-12-01 01:00

    Just enable Android Support plugin.

    1. Click Ctrl+Alt+S in Windows or Meta+Comma in Mac.
    2. In top search bar type "plugin".
    3. On right side it will show a list of plugins, find Android Support plugin, check it and click OK at the bottom of screen.

    This is how it looks:

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

    Just re-enable Android Support plugin. Then it will ask to restart. Say yes. That's it.

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