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

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

问题描述

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

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

我当前的问题 - Android Studio 不允许我在 Manifest 中运行没有可启动活动的应用程序,例如,我的应用程序 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天全站免登陆