Android的工作室:在模块不会出现"编辑配置"模块、编辑、工作室、Android

由网友(任半生嚣狂)分享简介:我已经导入了一个项目,Android的工作室多个子项目。 I've imported a project to Android Studio with several subprojects. 我想运行一个子项目。我成功make'd这个子项目build.gradle作为一个模块。 I successfully...

我已经导入了一个项目,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.

阅读全文

相关推荐

最新文章