java 未指定模块?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32939586/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Module not specified?
提问by Ruchir Baronia
I have recently started learning android development, and I just built an app that changes color and text based on pushing buttons and gestures. It ran fine on my phone (Yay!), but then on my second run, an error occurred. When hitting the "run" button, an edit configurations window opened up:
我最近开始学习 android 开发,我刚刚构建了一个基于按钮和手势改变颜色和文本的应用程序。它在我的手机上运行良好(耶!),但是在我第二次运行时,发生了错误。当点击“运行”按钮时,会打开一个编辑配置窗口:
I also noticed, that on the side where my project tree should be is this instead:
我还注意到,在我的项目树应该是这样的一侧:
I don't think there is an issue in the code because it was running fine before, but I would be happy to post the code if needed.
我认为代码中没有问题,因为它之前运行良好,但如果需要,我很乐意发布代码。
Also
还
I dont know if this was the reason, but i'll include this anyway, I tried changing the name of my project, but it wouldn't work, but I changed it back. I included this in my question because that's literally the only thing I did before this error occured.
我不知道这是否是原因,但无论如何我都会包括这个,我尝试更改我的项目名称,但它不起作用,但我又改回来了。我将此包含在我的问题中,因为这实际上是我在发生此错误之前所做的唯一一件事。
Thank you so muchfor helping out a fellow programmer, I really appreciate it. I have been looking at many other forums (for some hours) about this topic, but still couldn't trouble shoot this problem. It seems kind of odd that it was working first, and then it just randomly stopped working. I cant wait for your response!
非常感谢您帮助一位程序员,我真的很感激。我一直在查看有关此主题的许多其他论坛(几个小时),但仍然无法解决此问题。它首先工作似乎有点奇怪,然后它只是随机停止工作。我等不及你的回应了!
Here is the dropdown for Module:
As you can see, that is the only option.
采纳答案by Ahmed Gamal
Are you sure you are opening the project as android gradle project ? Try to import the program not open it
您确定要以 android gradle 项目的形式打开项目吗?尝试导入程序不要打开它