不自动启动应用程序,当我运行Android的直通工作室 [英] Not Auto launching app when I run thru android studio

查看:179
本文介绍了不自动启动应用程序,当我运行Android的直通工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我右键单击我的项目 - >运行 - >所有测试

I right click my project-> Run -> All Tests

及其构建,并在我的设备安装。

Its Building and Installing in my Devices.

但在Eclipse中的应用程序不会自动启动等。

But app is not automatically launching like in eclipse.

好像我在终端安装了直通 ADB安装。需要我安装每次手动打开。

It seems like I installed thru adb install in terminal. Need to manually open each time I installed.

推荐答案

这是因为你正在运行它作为一个测试,而不是作为一个Android应用程序。

It is because you are running it as a 'test' and not as an 'Android Application'.

打开编辑配置窗格中,点击+按钮。选择创建一个新的Android应用程序,然后选择正确的模块的选项。 Apply,然后你可以删除,如果你希望你在使用之前测试配置。然后,每次你运行,请确保您运行的是作为一个Android应用程序,而不是一个测试,它会安装自动启动。

Open the "Edit Configurations" pane and click the '+' button. Select the option to create a new 'Android Application' and then select the correct module. Apply, and you can then delete the test configuration you were using before if you wish. Then everytime you run, make sure you are running as an Android Application and not a test and it will auto-launch on install.

这篇关于不自动启动应用程序,当我运行Android的直通工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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