当我通过 android studio 运行时不自动启动应用程序 [英] Not Auto launching app when I run thru android studio
本文介绍了当我通过 android studio 运行时不自动启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我右键单击我的项目->运行 ->所有测试
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 install
安装的.每次安装都需要手动打开.
It seems like I installed it through 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 应用程序"的选项,然后选择正确的模块.
- 申请,然后您可以根据需要删除之前使用的测试配置.
然后每次运行时,请确保您是作为 Android 应用程序运行而不是作为测试运行,它会在安装时自动启动.
Then every time you run, make sure you are running as an Android Application and not a test, and it will auto-launch on install.
这篇关于当我通过 android studio 运行时不自动启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文