简体   繁体   English

为什么在Android Studio中禁用了我的运行配置?

[英]Why is my run configuration disabled in Android Studio?

ScreenShot我的页面

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.

相关问题 Android Studio 2.2.3运行按钮已禁用 - android studio 2.2.3 run button disabled 为什么我的Android Studio应用无法在Android设备上运行? - Why does my Android Studio app fail to run on an Android device? 为什么我可以在自己的笔记本电脑中运行自己的android应用程序,而这些应用程序已在使用Android Studio的学校实验室中成功运行 - Why i can run my android apps in my own laptop that are successfully run in my school lab with android studio Android Studio-运行MainActivity时出错:未知的运行配置类型AndroidRunConfigurationType - Android Studio - Error running MainActivity: Unknown run configuration type AndroidRunConfigurationType android studio 3.5:我可以将运行配置导出到jar吗? - android studio 3.5: can I export run configuration to jar? 为什么我的 android studio 应用程序在运行时跳过登录和注册页面? - Why is my android studio app skipping the login and registration page when I run it? Android Studio配置问题 - Android Studio configuration problems 由于禁用了VT-x,因此无法在Android Studio中运行代码 - Can't run code in Android studio due to VT-x disabled 为什么我的IntelliJ插件未在Android Studio中显示 - Why my IntelliJ plugin not showing in Android Studio 为什么我的物品没有显示在 android 工作室的愿望清单中 - why my items are not showing in wishlist in android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM