Android Studio-在没有启动器活动的情况下运行应用程序 [英] Android Studio - Run application without launcher activity

查看:172
本文介绍了Android Studio-在没有启动器活动的情况下运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以和其他所有人一样,我移至Android Studio并遇到了问题.

So like everyone else, I moved to Android Studio and encountered issues.

我当前的问题-Android Studio不允许我在清单中没有可启动活动的情况下运行应用程序,例如,我的应用程序Pro密钥被认为不能启动并且可以在Eclipse上很好地运行.

My current issue - Android Studio won't let me run an application without a launch-able activity in the Manifest, for example, my application Pro key which isn't suppose to be launch-able and runs great with Eclipse.

显然不是应该运行,但是有什么方法可以直接从Studio安装它吗?

Obviously it's not suppose to run but is there any way to install it directly from Studio?

推荐答案

在运行/调试配置"(位于工具栏中的launch按钮旁边)中,您可以管理应用程序配置.您应该可以在其中指定是否要启动Activity.

In Run/Debug Configurations (just next to the launch button in the toolbar) you can manage your application configurations. There you should be able to specify whether you want to launch an Activity or not.

这篇关于Android Studio-在没有启动器活动的情况下运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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