Questions tagged [dynamic-feature-module]

155 questions
0
votes
1 answer

Failure [INSTALL_FAILED_INVALID_APK: Session: 766972672. No packages staged in /data/app/vmdl766972672.tmp]

Struggling with INSTALL_FAILED_INVALID_APK, only if installation is done in Android 11(API 30) below this version app installation is fine and specifically issue starts with 2nd onward install attempts(since 1st install attempt successes always),…
0
votes
1 answer

Isis possible to use dynamic feature modules without Google play

is there possibility to use dynamic feature module or something similar without Google play? All files would be on my server.
Jacek
  • 73
  • 6
0
votes
1 answer

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Too many entries (66530)

Gradle build fails for Dynamic Feature module when minify is enabled with this error FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':pal-phonepe-application:mergeInsidePhonePeStageInternalClasses'. > A…
Tushar Saha
  • 1,978
  • 24
  • 29
0
votes
1 answer

WorkManager cannot inject with hilt in dynamic module

When I use WorkManager + Hilt in regular module, the app works well. However, when I use in dynamic module, meeting the below issue java.lang.NoSuchMethodException: [class android.content.Context, class androidx.work.WorkerParameters] at…
0
votes
1 answer

Android DFM Dynamic FeatureModule Resources NotFoundException

In our app we start using Dynamic Feature Module (DFM) for big resources. We move most of drawables to DFM and load them if needed. For loading drawable using a Provider and application context (as in documentation), and it works only if dfm…
0
votes
1 answer

Do Android Dynamic Features share a classpath with the app?

Do Android dynamic feature modules have an isolated classpath, or do they share a classpath with the rest of the application? My companies app has grown large enough that we have multiple teams owning separate features. We're currently considering…
spierce7
  • 14,797
  • 13
  • 65
  • 106
0
votes
1 answer

How to inject SavedStateHandle to ViewModel in dynamic feature module?

Using @Assisted annotation with savedStateHandle and by viewModels() it's possible to inject SavedStateHandle object to ViewModel in modules that are not dynamic feature modules with dagger hilt as @AndroidEntryPoint class MainActivity :…
0
votes
0 answers

Resources NotFoundException: Drawable (missing name) Dynamic feature module

I am building the app with Dynamic Feature Module and uploading it on internal app sharing for testing. I am able to download the Dynamic module during the app but, When I am going to a particular fragment, I am getting the error Fatal Exception:…
0
votes
1 answer

How to include AAR in Dynamic Feature Module?

I want to put a big AAR library ("crypteriumsdk") into a Dynamic Feature Module, which can be installed on-demand. But when I do that, it can't find its resources (theme): resource style/CrypteriumTheme…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
0
votes
1 answer

androidTest espresso test cases in a Dynamic Feature Module failing to build/run - Execution failed for task ':dfm:mergeLibDexDebugAndroidTest'

I've separated a feature from app module into a Dynamic Feature Module (named dfm ). The module works perfectly where I've followed all best practices and requirements. But one of the test cases in the androidTest which uses AndroidJUnit4 and…
huskygrad
  • 1,257
  • 1
  • 10
  • 21
0
votes
1 answer

Default activity from dynamic-feature

We are restructuring our app, so we basically transformed our application modules into dynamic-feature. Now we have all our code on our dynamic-feature and the application modules is like a wrapper in order to run the dynamic-feature. The problem we…
Donki
  • 660
  • 6
  • 21
0
votes
1 answer

How to manage the code Dynamic Feature Module on app update with feature code?

I am working on dynamic feature module in android. But I couldn't find anything when I update the codebase or change the codebase in Feature Module. How to handle the codebase, as when checking the getInstalledModules() method returns that it is…
Shubham Agrawal
  • 1,252
  • 12
  • 29
0
votes
0 answers

OnDemand Feature Download SDK greater than 20MB in Android?

I am working on a project where I need an SDK which is of 20MB size only in a certain case. I mean the usage is still low, but due to that my app size is getting bigger as I include that aar file. Is there a way to use it or download the SDK only…
Shubham Agrawal
  • 1,252
  • 12
  • 29
0
votes
1 answer

How to access Android's "dynamicFeatures" property from a custom Gradle plugin in buildSrc

In my project, I'd like to generate a class that contains information about my dynamic features. Dynamic features are added this way: // In the base module’s build.gradle file. android { ... // Specifies dynamic feature modules that have a…
0
votes
0 answers

Android dynamic feature modules doing auth using Firebase AuthUI

Currently, i'm migrating to use dynamic feature modules in an Android project, while modularising, i've created the onboarding and home modules. In the onboarding module, i've included the call for the AuthUI login/register flow with normality..…
1 2 3
10
11