No Android Facet Found in Module

19,029

Solution 1

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

Solution 2

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.

Share:
19,029
rhodysurf
Author by

rhodysurf

Ocean and Software Engineer

Updated on June 07, 2022

Comments

  • rhodysurf
    rhodysurf almost 2 years

    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

  • rhodysurf
    rhodysurf about 10 years
    Interesting, I will try this on another project and see if it works.
  • Heinrisch
    Heinrisch about 10 years
    I got the problem again and solved it by: 1. submodule update 2. gradlew clean 3. rm -r .idea *.iml 4. re-import in Android Studio.