Questions tagged [dynamic-feature-module]

155 questions
4
votes
1 answer

Getting Error -> all package the same library [androidx.activity:activity-ktx] in Android app

I have an application which has several dynamic modules , which are working fine . I recently updated compile sdk and target sdk to 31 . Now I want to add new dynamic module which has a external different application (aar file) and associated libs…
4
votes
1 answer

On-Demand Feature Module giving error - Failed to calculate the value of property 'applicationId'. Collection is empty

In my base(:app) module build.gradle file I have (under defaultConfig block) applicationId "com.example.mobile" In my dynamic feature module build.gradle I have (under defaultConfig block) applicationId "com.example.mobile.ondemand" Similarly in…
Ashwani Kumar
  • 1,402
  • 1
  • 19
  • 26
4
votes
3 answers

Dynamic feature module with Hilt

I try to make my feature module as a dynamic feature module while I am using Hilt as dependency injection framework. I receive following exception : caused by: java.lang.ClassCastException:…
Ali
  • 9,800
  • 19
  • 72
  • 152
4
votes
3 answers

Dynamic module feature and ML Kit Crash on App open

App has ML Kit functionality (translation). I'm trying to reduce the app size by introducing a dynamic module feature, on demand loading. Following this guide Added 'com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta1' to base apk's…
toasty
  • 142
  • 1
  • 1
  • 10
4
votes
1 answer

Android Split Install Error(-2): Module_Unavailable Error

I am trying to implement on demand delivery feature in my android app. Now I am working on examples to understand how it works but when I try to install a dynamic module it shows an error message "Split Install Error(-2): A requested module is not…
4
votes
1 answer

Resources$NotFoundException with include-dynamic navigation graph

I have a dynamic feature module with it's own nested navigation graph. I also have a dynamic feature module that's just a single fragment. If you have a dynamic feature module with it's own navigation graph, I understand you need to use the…
4
votes
2 answers

Show Fragment from Dynamic Feature Module in base (app) module?

In my base module (app) I have a few Fragments. I would like to put one of them in a Dynamic Feature Module, which would get installed on-demand. Until the user decides to install this module, I would just show an empty placeholder instead of that…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
4
votes
2 answers

Dynamic feature module navigation IllegalStateException: The included 's id is different from the destination id

I have one app and one dynamic feature module i wish to navigate from App nav graph
Thracian
  • 43,021
  • 16
  • 133
  • 222
4
votes
1 answer

Resources$NotFoundException after configuration change in dynamic feature module

I'm currently experimenting with dynamic feature modules and came across a strange problem. I handle configuration changes by implementing the onConfigurationChanged method in my Activity and defining it in the manifest by adding…
3
votes
1 answer

End to end test for android app with dynamic feature module . How to?

Android project structure : -app module -featureA dynamic module -> depending on app module -featureB dynamic module -> depending on app module Use Case : I want to write end to end intrumentation test for my application Issue : Since , dynamic…
3
votes
1 answer

cannot be provided without an @Provides-annotated method. public abstract static class ApplicationC implements MyApplication_GeneratedInjector,

I make a project using dagger hilt and when I make a dynamic feature it shows an error like this /MyApplication_HiltComponents.java:166: error: [Dagger/MissingBinding] com.apps.jobwishlist3.core.domain.usecase.JobUseCase cannot be provided…
Qube
  • 543
  • 3
  • 9
  • 23
3
votes
1 answer

Android Dynamic Feature : Error -2 Module Unavailable

I have been debugging all day with no result, I've followed every documentation and google code labs and uploaded the bundle to internal testing and the error persists : Module Unavailable, below is my implementation: Module…
Badran
  • 515
  • 1
  • 7
  • 21
3
votes
0 answers

Android InstantApp and sharedUserId

I would like to create an instant app for one application currently on the play store. For that, I made dynamic feature modules with all necessary things for instant experience. The major problem is that the field android:sharedUserId is defined on…
Crisic
  • 1,181
  • 1
  • 9
  • 27
3
votes
1 answer

How to create ViewModel in dynamic feature module with Dagger Hilt?

Trying to create ViewModel in a dynamic feature module with private val viewModel: PostDetailViewModel by viewModels() in fragment class PostDetailFragment : DynamicNavigationFragment() { private val viewModel:…
Thracian
  • 43,021
  • 16
  • 133
  • 222
3
votes
1 answer

How can I execute the failed state with error code "INCOMPATIBLE_WITH_EXISTING_SESSION" in android dynamic delivery?

According to the Android developer documentation, the definition of the failed state "INCOMPATIBLE_WITH_EXISTING_SESSION" is The request contains one or more modules that have already been requested but have not yet been installed. I'm testing an…
neg.gh
  • 113
  • 6
1
2
3
10 11