android studio“运行”按钮不出现

发布于 2025-01-18 20:37:52 字数 926 浏览 3 评论 0原文

我的Android Studio停止显示“运行”按钮(在没有问题的情况下显示该项目之前)。我尝试了几种解决方案,例如:“无效的缓存”,“与Gradle文件的同步项目”和“尝试使用快捷方式Shift + F10运行”,但都无法使用。

选定的模块是正确的。

我的Android Studio版本

Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: com.wakatime.intellij.plugin (13.1.14), org.jetbrains.kotlin (211-1.6.20-release-275-AS7442.40), com.developerphil.adbidea (1.6.4), org.intellij.plugins.markdown (211.7142.37)

My android studio stopped showing the "run" button (before it showed this project without problems). I've tried several solutions like: "invalidate caches", "sync project with gradle files" and "try run using shortcut shift + F10", but none of it worked.

The selected module is correct.

 android studio button run not showing

My Android Studio Version

Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: com.wakatime.intellij.plugin (13.1.14), org.jetbrains.kotlin (211-1.6.20-release-275-AS7442.40), com.developerphil.adbidea (1.6.4), org.intellij.plugins.markdown (211.7142.37)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

不打扰别人 2025-01-25 20:37:52

我设法解决这个问题如下:

  1. 单击Android Studio顶部栏上的“build”;

  1. 在打开的菜单中,访问“清理项目”选项;

  1. 再次进入“构建”选项;

  1. 在打开的菜单中,访问选项“重建项目”。

I managed to solve this problem as follows:

  1. Click "build" on the top bar of Android Studio;

  1. In the menu that opens, access the "clean project" option;

  1. Go to the "build" option again;

  1. In the menu that opens, access the option "rebuild project".

行雁书 2025-01-25 20:37:52

由于 IntelliJ 产品的可定制性非常高,因此您可能删除了 Run 按钮。

前往
Android Studio >首选项>外观&行为>菜单和工具栏

搜索工具栏运行操作/运行/调试
如果您没有看到运行,您可以通过恢复操作进行恢复

希望,它会有所帮助。

As IntelliJ products are very highly customizable, it is possible that you deleted the Run button.

Go to
Android Studio > Preferences > Appearance & Behaviour > Menus and Toolbars

Search for Toolbar Run Actions / Run/Debug
If you do not see Run, you may restore by Restore Actions

Hope, it helps.

墨小墨 2025-01-25 20:37:52

在Android Studio海豚中
转到塔巴尔 - >文件 - >维修IDE。
看警告并点击维修索引。这是为我解决的。

In Android Studio Dolphin
Go to TabBar -> File -> Repair IDE.
Look warning and click repair index.This was solved for me.

梦巷 2025-01-25 20:37:52

关闭Android Studio,DELETE .IDEA文件夹,重新启动为。

Close Android Studio, delete .idea folder, restart AS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文