How to generate full APK file including dynamic feature module

后端 未结 3 1792
一生所求
一生所求 2020-12-09 10:57

My project has dynamic feature module and I would like to generate debug or release APK including the dynamic feature. Currently I can get only base APK file.

Basica

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 11:52

    I don't see it documented anywhere, but the Android Gradle build tools include tasks to extract the universal APK for you. You can use something similar to:

    ./gradlew :yourmodule:packageDebugUniversalApk
    

    Under the hood it uses bundletool and does essentially the same thing as the other answer, but it's nice to be able to do it from Gradle.

提交回复
热议问题