在Android Studio中,为什么必须在模拟器中单击两次“运行应用程序"才能启动应用程序? [英] In Android Studio, why do I have to click 'run app' twice in the emulator to start the app?

查看:146
本文介绍了在Android Studio中,为什么必须在模拟器中单击两次“运行应用程序"才能启动应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android Studio中,当我按下播放按钮以在Android Emulator上安装并运行该应用程序时,大约5到10秒钟后,我在屏幕底部收到一条消息,提示安装成功".但该应用程序实际上并未在模拟器上运行,我必须再次按下播放按钮.这非常令人沮丧,因为我从事的项目是我只按一次Play就可以同时安装和运行的项目.

我尝试搜索此论坛,但找不到答案.还有其他人会遇到这种情况吗?您如何解决?

解决方案

我没有单击图标,而是开始使用下拉框,单击在多个设备上运行",选择设备并单击运行"./p>

这似乎已经解决了问题.

In Android Studio, when I press play button to install and run the app on the Android Emulator, after about 5-10 seconds, I get a message on the bottom of the screen saying "Install successful" but the app doesn't actually run on the emulator, I have to press the play button again. This is quite frustrating because I have worked on projects where I just press play once and it installs and runs at the same time.

I tried searching this forum but couldn't find an answer. Does anybody else experience this and how do you fix it?

解决方案

Instead of clicking on the icon, I started using the dropdown box, clicking on 'Run on Multiple Devices', selecting the devices and clicking 'Run'.

This seems to have solved the problem for now.

这篇关于在Android Studio中,为什么必须在模拟器中单击两次“运行应用程序"才能启动应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆