Questions tagged [dynamic-feature]

69 questions
19
votes
3 answers

How to generate full APK file including dynamic feature module

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. Basically I would generate an APK file like normal application. But I couldn't do with…
chain
  • 649
  • 10
  • 22
11
votes
1 answer

Android Provider in Dynamic Feature module not found in Base Module

I am using some libraries in my dynamic feature module. These libraries are Adding some providers to the manifest. For example in my build.gradle file in the dynamic module: dependencies { ... implementation…
10
votes
1 answer

Unable to access resources of dynamic-feature module

I am trying to add the new Android dynamic delivery feature to my app, but my attempts to access the resources of the dynamic feature module keep failing. The basic idea is to load a module with no code but a bunch of vector files as drawable…
6rism0
  • 133
  • 7
10
votes
2 answers

UI Espresso Test on Dynamic feature modules

The firebase test lab accept an App Bundle / APK and an android test APK and with dynamic feature module UI tests fail on Firebase test lab. The error is about some multi dex problem indicating that the feature module is not found in the base apk…
8
votes
2 answers

Split Install API is not available. error code - 5 while installing dynamic feature Android Studio

I have published my .aab apks bundle to internal testing realease mode. When i try to install dynamic feature on demand it give me exception: com.google.android.play.core.splitInstall.SplitInstallException: Split Install Error(-5): Split Install…
8
votes
1 answer

Cannot choose between the following variants of project :features:myDynamicFeatureModule:

I am experimenting with Android's Dynamic Feature Modules (a.k.a. on demand modules) on the side of the project I am working on. In my PoC (proof-of-concept) project, Dynamic Feature Modules (DFM) work fine and gradle builds the project with no…
7
votes
3 answers

Why is android studio assembling our dyanimc feature module test apk?

We have a core android application module (called app) and a single dynamic feature module (called replay). Even though this is a DFM we include it at install time. In our DFM's AndroidManifest.xml:
tir38
  • 9,810
  • 10
  • 64
  • 107
6
votes
1 answer

Merged test apk for dynamic feature modules

Is there a way to create a universal APK for instrumented tests? I wanted to run the whole test suite on Firebase Test Lab but it seems tedious to upload one APK for each dynamic feature module's test APK. For the app, you can do a…
6
votes
5 answers

Access graphics from drawable folder of a dynamic feature module from main module

I'm getting my feet wet with dynamic module split API delivery in order to break up my game app into Instant and Installable versions. I've been following the Codelabs tutorial here…
Androidcoder
  • 4,389
  • 5
  • 35
  • 50
6
votes
2 answers

Generating APK with all dynamic features

I have added a dynamic feature module to my project and everything works fine when trying on emulator or direct run on a device (using the run button) but when I try to generate a APK using command line (:app:assembleRelease) the dynamic feature…
6
votes
1 answer

unable to refer app module classes in dynamic feature module when running unit test cases

Our project has dynamic feature module with a dependency on the app module. The classes in the dynamic feature module have a dependency on app module. We also have unit test cases in the dynamic module testing individual classes of the dynamic…
6
votes
1 answer

Can't add a dynamic feature module because of build flavor problems

I wanted to implement a new dynamic feature module in an existing app but had to give up due to product flavor problems. The example code can be found here. https://github.com/henningBunk/dynamic_feature_problem I have three modules: app. The main…
Henning
  • 2,202
  • 1
  • 17
  • 38
5
votes
1 answer

How to use Dynamic Feature module with BottomNavigationView?

Adding dynamic feature using a navigation graph like the one below and works fine with viewPager2, or another fragment, but not with a BottomNavigationView. Layout
5
votes
0 answers

Android dynamic feature module as Sub-module

I'm using this new module type and i was wondering if it's possible to use it inside a directory. So i moved "home" module inside the "ui" directory as an example and got this error: ERROR: Unable to find matching projects for Dynamic Features:…
Peyman
  • 941
  • 8
  • 28
5
votes
2 answers

How to exclude .jar file from .aar file

Is there a way to exclude .jar file from .aar file. My project is not running as I have one module that contains a .aar file in which Gson.jar is used as a library and I need it in my main app as well so I need to implement Gson dependency also.…
1
2 3 4 5