我已将一个项目导入到 Android Studio,其中包含多个子项目。
我想运行一个子项目。
我成功地将这个子项目的build.gradle作为一个模块。
为了运行它,我转到“运行”>“编辑配置”>“+”>“Android 应用程序”。
问题:当我尝试选择一个模块时,下拉列表中没有显示任何模块。
这是为什么呢?
编辑:它在 Groovy 下显示为模块,但在 Android 应用程序下不显示。如何让它显示在 Android 应用程序下?
最佳答案
确保您的build.gradle是
apply plugin: 'com.android.application'
不是
apply plugin: 'com.android.library'
更改后,请再次同步您的 gradle。
关于android-studio - Android Studio : Module won't show up in "Edit Configuration",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18368748/