In android studio,cannot load 2 facets-unknown facet type:android and android-gradle
android-studio
Solution
Just enable `Android Support` plugin.
- Click `Ctrl+Alt+S` in Windows or `Meta+Comma` in Mac.
- In top search bar type "plugin".
- 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:
Problem
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 "2 facets cannot be loaded. You can mark them them as ignored to suppress this error notification. Unknown facet type:'android', Unknown facet type:'android-gradle' I tried to add facets ( In Project Structure > Project settings > Modules > clicked project name, then clicked Android as well as Android-Gradle) But both showed as "cannot load facet, unknown facet type." Under Project settings > Facets > both Android and Android-Gradle are displayed as 'Invalid facets'. My project was running smoothly. This problem occured when I force-closed my laptop before exiting android studio as everything got stuck. After that whenever I open the android studio this problem occurs. I am not able to run my project. Can anyone please help me to solve this?