Android Studio不会自动启动应用程序。

huangapple go评论72阅读模式
英文:

Android studio does not automatically launch the application

问题

当我从Android Studio运行我的应用程序时,该应用程序会安装到手机上,但不会自动启动。

英文:

When I run my application from Android studio, the application is installed on the phone but it does not launching automatically.

答案1

得分: 1

对于我来说,缺少设置:Launch

编辑配置 -> [主模块] -> 通用 -> 启动选项 -> 启动 -> 默认活动

英文:

For me it was missing setting: Launch

Edit configurations -> [main module] -> General -> Launch options -> Launch -> Default activity

答案2

得分: 0

你尝试过手动运行它吗?
如果你尝试过并且它正在运行,有时这种情况就会发生,试着重新启动Android Studio / 手机。
如果当你手动运行应用时它无法运行,这意味着在启动会话的早期阶段就出现了异常,你需要进行调试。

英文:

Have you tried running it manually?
If you have and it's running, sometimes it just happens, try to maybe restart android studio / your phone.
If when you manually running the app it won't run, it means you are getting an exception very early during the startup session and you'll need to debug it.

答案3

得分: 0

在启动应用之前,将应用最小化(按主页按钮)或从设备/模拟器中退出应用。然后应用将自动启动。

英文:

Before launching the app, minimize the app(press home button) or exit the app from device/emulator. Then the app will auto launch.

答案4

得分: 0

我不知道是什么原因导致了这个问题。然而,当我卸载了安卓工作室并重新安装后,问题得以解决。

英文:

I don't know what caused this problem. However, when I uninstall the android studio and reinstall it, the problem was resolved.

huangapple
  • 本文由 发表于 2020年10月22日 17:20:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/64479135.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定