[英]Why is my run configuration disabled in Android Studio?
My app is called QEventShare. 我的应用程序名为QEventShare。 There are no compilation errors.
没有编译错误。 Just 5 minutes ago, I would have been able to run the app, but now for some reason, I cannot.
就在5分钟前,我本来可以运行应用程序,但现在由于某种原因,我不能。
If you look by where the Run Button is, you will notice that it is unclickable. 如果您查看“运行”按钮的位置,您会发现它无法点击。 You will also notice a '?'
你还会注意到'?' and X by my app name (left of the run button).
和我的应用程序名称(运行按钮左侧)。
Why is this happening and how can I fix it? 为什么会发生这种情况,我该如何解决?
I've exited and restarted Android Studio twice to no avail. 我已退出并重启Android Studio两次无济于事。
I know it is too late, but it could be useful for somebody. 我知道为时已晚,但它对某些人有用。 As @Gabriele said, go to the combo just to the left of the run button, open it and select the main module of your project.
正如@Gabriele所说,转到运行按钮左侧的组合,打开它并选择项目的主模块。 It should be enough to enable run button again.
应该足以再次启用运行按钮。
Cheers. 干杯。
我的解决方案是重启项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.