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.
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?
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With