问题描述
我的运行配置中出现未指定模块"错误.下拉菜单中没有显示模块,但我看不到模块的任何问题.当我重构模块名称,将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.
我的确切步骤-
- 在Android视图中打开
- 重构目录名称
- 重构模块名称
- 更改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运行/调试配置错误:未指定模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!