Questions tagged [dynamic-feature-module]
155 questions
3
votes
0 answers
Cannot find @BindindAdapter in dynamic feature module
I have extension function in app module
@BindingAdapter("imageSrc")
fun setImageUrl(view: ImageView, userId: Int) {
try {
val drawableRes = when {
userId % 6 == 0 -> {
R.drawable.avatar_1_raster
…

Thracian
- 43,021
- 16
- 133
- 222
3
votes
1 answer
Android Dynamic Feature modules with Dagger Hilt
I have built a Dynamic feature module sample with Fragments, sub components and dependent components based on plaid app, if you wish to check out here is the link. Now, i'm trying to convert it to Dagger Hilt using the official android document.
In…

Thracian
- 43,021
- 16
- 133
- 222
3
votes
0 answers
Lint task never finishes for Android multi-module project with dynamic feature module
Our app contains over 20 multi-modules and one on-demand dynamic feature module.
Before adding dynamic feature module, it took 20-30 mins for lint task to complete both on CI and local, but after adding dynamic feature module, it DOES NOT COMPLETE…

shoheikawano
- 1,092
- 3
- 14
- 31
3
votes
0 answers
Android dynamic feature access fragment from main app with proguard enabled
I have one dynamic feature. And when i enable proguard and i try to access fragment
if (splitManager.installedModules.contains(name)) {
val fragment = "com.xxx.xxx.xxxx.AAFragment"
val fr =…

msevgi
- 4,828
- 2
- 24
- 30
3
votes
1 answer
Unresolved reference: search_src_text
For reference
This is a branch showing the issue (note the project is incomplete). Run it and you'll see the compile time error Unresolved reference:…

mitch
- 797
- 8
- 14
3
votes
1 answer
Dynamic Feature Module not getting installed
I am adding an on demand dynamic feature module on my app, but I am having a problem.
When I install that feature module
val request = SplitInstallRequest.newBuilder()
.addModule("ondemandfeature")
…

Augusto Carmo
- 4,386
- 2
- 28
- 61
3
votes
1 answer
Dynamic Feature with third party library that has an activity in its manifest with a custom theme - Resource not found
I have a module in my app that acts as a dynamic feature.
This dynamic feature module uses a third party library where this third party library has in its AndroidManifest an Activity that uses a custom theme.
With the described configurations, the…

Augusto Carmo
- 4,386
- 2
- 28
- 61
3
votes
4 answers
Dynamic Feature Module with Flutter
I am a Native Android Developer and I was learning Dynamic Feature Module from here
But I also work with flutter. So, is this feature available in flutter?

Midhilaj
- 4,905
- 9
- 45
- 88
3
votes
1 answer
How to start an Activity in a dynamic feature module?
When typing to start an Activity within a dynamic feature module trough an Android Studio run-configuration, I get the following warning: The activity 'SomeActivity' is not declared in AndroidManifest.xml.
(because it is being declared in the…

Martin Zeitler
- 1
- 19
- 155
- 216
3
votes
1 answer
Android dynamic feature modules dependencies
so I have a couple of features that share common code - let's call them "feature1" and "feature2". I can't add the shared code as dependencies for "feature1" and "feature2" - Android studio throws the following error:
Multiple APKs packaging the…

Romanski
- 730
- 8
- 27
3
votes
3 answers
Manifest Merger Error when using Dynamic Features and Build Flavors
With dynamic-feature-modules it is possible to define in the AndroidManifest.xml wheter a module should come preinstalled:
....
or…

Lukas Lechner
- 7,881
- 7
- 40
- 53
2
votes
1 answer
How to set Target Sdk on Feature Module (Gradle 7.0.2)
I want to change what was previously a library (com.android.library) to a feature module (com.android.dynamic-feature). However, when I do so, I am unable to set the targetSdk or targetSdkVersion:
plugins {
id("com.android.dynamic-feature")
…

Villa
- 459
- 7
- 17
2
votes
0 answers
Scoped ViewModel with Dagger Hilt in a Dynamic Feature Module
I am following the official Android guide for Using Dagger in multi-module apps, and I am able to get everything to compile and "work".
The problem is that I have a viewpager in my dynamic feature module and I need to have a parent "scoped"…

Nelson.b.austin
- 3,080
- 6
- 37
- 63
2
votes
2 answers
How to execute UI tests for a Dynamic Feature Module via Android Studio?
I have a regular :app module and a DFM :feature.
I place the tests for the DFM in androidTest source set inside :feature.
When I try to launch the test using run configuration created by Android Studio it silently fails with Test framework quit…

pratclot
- 326
- 2
- 8
2
votes
1 answer
How to inject/provide repository from Android Dynamic Feature module into App module
Im investigating Dynamic Feature modules in my current Android Application.
My application consists of an App Module, a number of static modules and a single Dynamic Feature Module.
Im attempting to inject a repository class declared in the Dynamic…

Hector
- 4,016
- 21
- 112
- 211