0

Hi Am working on a project where i have to create both installable and instant apk. It is actually a installable app, now I migrated to instant app. After configuration both the module works fine. But now only instant module is working but not APK module. But it is telling default activity not found in APK module. Can anyone know what is the issue?

enter image description here

I don't know why it is telling, I have not updated anything on apk module debug configuration it was working well. But now it is not working. Can anyone have solution for this issue?

Here is my apkmodule manifest.xml

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="xxx.xxxx.xxx">
   </manifest>
Anbarasu Chinna
  • 975
  • 9
  • 28

2 Answers2

0

It's actually a bug in android studio caused by an external library library where manifest merging fails.

I filed the issue here, there is a workaround

Workaround: if you build from the command line, gradle does the manifest merging correctly for the installable app.

As a second workaround that worked for me: Add the application tag and activity tag to your apkmodule manifest until you finish testing the remove it. Note: the activity name has to be the fully qualifying name.

Khaled Emara
  • 96
  • 1
  • 14
0

Like say @Khaled Emara, i think it's a bug. Maybe you are not using android architecture component but some library does

Have you try to install the app with command line ?

./gradlew installDebug
filol
  • 1,669
  • 1
  • 15
  • 38