“编辑配置”>-6ren">
gpt4 book ai didi

android-studio - Android Studio : Module won't show up in "Edit Configuration"

转载 作者:行者123 更新时间:2023-12-03 04:10:10 28 4
gpt4 key购买 nike

我已将一个项目导入到 Android Studio,其中包含多个子项目。

我想运行一个子项目。

我成功地将这个子项目的build.gradle作为一个模块。

为了运行它,我转到“运行”>“编辑配置”>“+”>“Android 应用程序”。

问题:当我尝试选择一个模块时,下拉列表中没有显示任何模块。

这是为什么呢?

编辑:它在 Groovy 下显示为模块,但在 Android 应用程序下不显示。如何让它显示在 Android 应用程序下?

最佳答案

确保您的build.gradle

apply plugin: 'com.android.application'

不是

apply plugin: 'com.android.library'

更改后,请再次同步您的 gradle。

enter image description here

关于android-studio - Android Studio : Module won't show up in "Edit Configuration",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18368748/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com