Skip to content Skip to sidebar Skip to footer

Android Studio - Run Application Without Launcher Activity

So like everyone else, I moved to Android Studio and encountered issues. My current issue - Android Studio won't let me run an application without a launch-able activity in the Man

Solution 1:

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.

Solution 2:

In Run/Debug Configurations in General -> Launch Options -> Launch select Nothing like this enter image description here

Solution 3:

For the case you mention, editing the 'Defaults' run configuration may not result in a runnable/installable app (at Android Studio 0.2.3, at least).

Instead, it is possible to run/install by defining a new run configuration:

Run -> Edit Configurations ->'+'

Select 'Do not launch Activity', but leave 'Deploy application' selected.

Solution 4:

Desired Android App Module > LaunchOptions > Launch -> Nothinginstead of (Activity)

Post a Comment for "Android Studio - Run Application Without Launcher Activity"