没有找到Android的方面,问题与Android 0.2工作室编译 [英] No Android facet found, issues compiling with Android Studio 0.2

查看:224
本文介绍了没有找到Android的方面,问题与Android 0.2工作室编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么,下面就这个SO职位的建议(对不起,我会评论有期待,我没有足够的声誉)

So, following the advice on this SO post (sorry, I would comment there expect I don't have enough reputation)

<一个href=\"http://stackoverflow.com/questions/17614477/gradle-failure-could-not-determine-which-tasks-to-execute/17614814#17614814\">Gradle:失败:无法确定执行哪些任务

我从.iml文件,这让我编译去掉标签。但是,当我去到一个设备上运行的.apk文件,我得到的错误

I removed the tags from my .iml files, which allows me to compile. But when I go to run the .apk on a device, I get the error

错误运行TestProject:未找到TestProject Android的小面

"Error running TestProject: No Android facet found for TestProject"

有人能帮助请,只是想回过头来编写Android应用程序!

Can someone help please, just want to get back to writing Android apps!

推荐答案

按照以下步骤添加一个机器人方面将模块。

Add an android facet to your module by following below steps.

1)转至文件菜单 - > 项目结构或preSS(按Ctrl + Alt + Shift + S )的快捷方式打开项目结构。

1) Go To File Menu -> Project Structure, or press (Ctrl+Alt+Shift+S) shortcut to open "Project Structure".

2)选择刻面,这是项目设置选项卡下。 (第一栏)

2) Select "Facets" which is under the "Project Settings" tab. (First column)

3)点击+按钮是在第二列的顶部添加新的方面。

3) Click on "+" button which is at the top of the Second Column to add new facets.

4)选择从添加菜单中的Android的方面,这将促使另一个对话框来选择一个模块。 (选择一个模块到要应用这个方面)。

4) Select "Android" facet from that "Add "menu which will prompt another dialog box to select a module. (Select a module to which you want to apply this facet).

5)选择你的模块,就是这样。 :)

5) Select your module and that's it. :)

希望这将解决您的问题。

Hope this will solve your problem.

这篇关于没有找到Android的方面,问题与Android 0.2工作室编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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