无刻面的Andr​​oid模块中找到 [英] No Android Facet Found in Module

查看:190
本文介绍了无刻面的Andr​​oid模块中找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚换到Android工作室从Eclipse中。我试图运行建立摇篮文件后,我的申请。该项目建立没有错误,但是我不能运行我的应用程序,因为有没有发现Android的方面。

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?

推荐答案

我通过去除.idea文件夹和所有.iml文件,然后到Android的工作室重新导入该项目解决了这个问题。

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

运行/编辑配置,你会看到,免得两个配置之一,原来的名字我的项目的名称:可以把它叫做 HELLOWORD 和另一个名为应用

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

一个与原来的名称 HELLOWORD 是有这个问题,但配置名为应用工作正常(我可以运行它)

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

所以删除与面问题的 HELLOWORD 的设置,并改名为一个叫做应用回到我的项目的名称 HELLOWORD

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

这篇关于无刻面的Andr​​oid模块中找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆