Android的工作室:在模块不会出现"编辑配置" [英] Android Studio: Module won't show up in "Edit Configuration"

查看:119
本文介绍了Android的工作室:在模块不会出现"编辑配置"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经导入了一个项目,Android的工作室多个子项目。

I've imported a project to Android Studio with several subprojects.

我想运行一个子项目。

我成功make'd这个子项目build.gradle作为一个模块。

I successfully make'd this subprojects build.gradle as a module.

为了运行它,我去运行>编辑配置> +> Android应用程序。

In order to run it, I went to Run > edit configurations > + > Android Application.

问题:当我试图选择一个模块,没有显示在下拉列表

这是为什么?

编辑:它显示为Groovy的下一个模块,但不是在Android应用程序。我如何得到它的下一个Android应用程序显示出来?

it shows up as a module under Groovy but not under Android Application. How do I get it to show up under Android Application?

推荐答案

请确保您的 build.gradle

apply plugin: 'com.android.application'

不是

apply plugin: 'com.android.library'

在您更改,请再次同步您的摇篮。

After you have changed, please sync your gradle again.

这篇关于Android的工作室:在模块不会出现"编辑配置"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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