Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Android Facet Found in Module

I just switched to Android-Studio from Eclipse. I am trying to run my application after setting up the gradle files. The project builds with no errors, however I can not run my app because there are no android facets found.

enter image description here

When I go to project structure there are no facets and I do not see any way to add a facet. How can I run my application?

enter image description here

like image 210
rhodysurf Avatar asked Feb 10 '14 05:02

rhodysurf


2 Answers

I solved it by removing the .idea folder and any .iml files and then re-import the project into Android Studio.

If after importing you end up with the error No facet found in module you need to follow this steps

Go to Run/Edit Configurations and you will see at lest two configurations one with the name of the original name my project: lets call it helloWord and another called app

The one with the original name helloWord was having this problem, but the configuration called app worked fine (I was able to run it)

So delete the setting with the facet problem helloWord and renamed the one called app back to the name of my project helloWord

like image 173
Heinrisch Avatar answered Oct 17 '22 10:10

Heinrisch


Th solution for me was to create a new project in android-studio. Then, copy over the code, resources, and dependencies to the new project. Then finally update the Gradle files manually and sync. Not perfect, but it worked and I can now upload to my device.

EDIT: This works but the method marked as the answer is what I was looking for.

like image 31
rhodysurf Avatar answered Oct 17 '22 09:10

rhodysurf