Android Studio 运行/调试配置错误:未指定模块 [英] Android Studio Run/Debug configuration error: Module not specified

查看:320
本文介绍了Android Studio 运行/调试配置错误:未指定模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的运行配置中出现未指定模块"错误.我在下拉列表中没有显示模块,但我可以看到我的模块没有问题.当我重构我的模块名称,将 settings.gradle 更改为新名称时,问题就出现了.

I am getting a 'Module not specified' error in my run config. I have no module showing in the drop down yet I can see my module no probs. The issue came about when I refactored my module name, changed the settings.gradle to new name.

现在,当我进入项目结构并选择我的模块时,屏幕上没有任何显示,甚至没有错误.

Now when I go to project structure and select my module nothing shows in the screen, not even an error.

我不是 100% 确定,但我模块旁边的图标看起来像一个装有杯子的文件夹,而不是装有手机的文件夹.

I'm not 100% sure, but the icon beside my module looks like a folder with a cup and not a folder with a phone.

我的具体步骤 -

  1. 在 Android 视图中打开
  2. 重构目录名称
  3. 重构模块名称
  4. 更改 settings.gradle 内容:名称为新名称

推荐答案

没关系,我在 settings.gradle 中更改了名称并同步,然后又改回来并再次同步,这次它莫名其妙地工作了.

never mind, i changed the name in settings.gradle and synced and then changed it back and synced again and it inexplicably worked this time.

这篇关于Android Studio 运行/调试配置错误:未指定模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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