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

来源:互联网 发布:免费数据库有哪些 编辑:程序博客网 时间:2024/06/03 13:21

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'


 

 Answer:

  1. Click Ctrl+Alt+S in Windows or Meta+Comma in Mac
  2. In Top Search bar type,"plugin" and AS would search it for you.
  3. On right side it will show list of plugins and also the plugin we need, that is Android Support,check it and click Ok at the bottom of screen.
down vote
 
原文链接:http://stackoverflow.com/questions/20560746/in-android-studio-cannot-load-2-facets-unknown-facet-typeandroid-and-android-gr
down voteaccepted

Previous answer: Just enable Android Support plugin.

New Answer:

  1. Click Ctrl+Alt+S in Windows or Meta+Comma in Mac
  2. In Top Search bar type,"plugin" and AS would search it for you.
  3. On right side it will show list of plugins and also the plugin we need, that is Android Support,check it and click Ok at the bottom of screen.
0 0
原创粉丝点击