In my projects I usually have different launcher/main activities based on product flavors and/or build types (e.g. DebugActivity, which usually just inherits from my main activity to add toolbar/menu items) and that activity is in a separate source set with its own AndroidManifest entry. As part of that manifest entry I tend to remove the initial launcher/main acitivty so that it does not interfere with the start process or anything else.
ADB IDEA does not honor these merged manifests. Commands like start/restart do not work anymore:
------------- could not bet started on Pixel_2_API_26 [emulator-5554].
ADB Output: Starting: Intent { cmp=-------------/.activities.MainActivity }
Error type 3
Error: Activity class {-------------/-------------.activities.MainActivity} does not exist.
The AndroidManifest.xml in debug/AndroidManifest.xml instead of main/AndroidManifest.xml:
Hi there,
In my projects I usually have different launcher/main activities based on product flavors and/or build types (e.g. DebugActivity, which usually just inherits from my main activity to add toolbar/menu items) and that activity is in a separate source set with its own AndroidManifest entry. As part of that manifest entry I tend to remove the initial launcher/main acitivty so that it does not interfere with the start process or anything else.
ADB IDEA does not honor these merged manifests. Commands like start/restart do not work anymore:
The AndroidManifest.xml in debug/AndroidManifest.xml instead of main/AndroidManifest.xml:
As you can see, the initial launcher activity will be removed and another one used instead.