Category : dynamic-feature-module

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 available (to this user/device, for the installed apk). (https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html#MODULE_UNAVAILABLE)" ..

Read more

It’s simple I have a store dynamic feature module which contains the StoreActivity then I start this activity from the app module using reflection startActivity(Intent().apply { setClassName(BuildConfig.APPLICATION_ID, "xy.xy.store.presentation.StoreActivity") putExtra("STORE_ID", store.storeId) }) Everything is working great when I just run a debug not signed APK but when I generated a signed release APK and try to ..

Read more

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 Feature Module into a repository class in one of my static modules. I have a common ..

Read more

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 without an @Provides-annotated method. public abstract static class ApplicationC implements MyApplication_GeneratedInjector, ^ A binding with matching key exists in component: com.apps.jobwishlist3.MyApplication_HiltComponents.ActivityC com.apps.jobwishlist3.core.domain.usecase.JobUseCase is requested at com.apps.jobwishlist3.di.FullTimeModuleDependencies.jobUseCase() I don’t ..

Read more

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 failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Too many entries (66530) it works fine if minify is disabled.. Source: Android..

Read more

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 AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:dist="http://schemas.android.com/apk/distribution" package="com.appshive.shop" > <dist:module dist:instant="false" dist:title="@string/measure"> <dist:delivery> <dist:on-demand /> </dist:delivery> <dist:fusing dist:include="true" /> ..

Read more

I created a sample project to use Dagger/Hilt with dynamic feature and ViewModel and everything was working great with Dagger/Hilt 2.29.1-alpha and Hilt Jetpack 1.0.0-alpha02 you can check the source code here. Now a new version of Dagger/Hilt is here which is Dagger/Hilt 2.32-alpha Hilt Jetpack 1.0.0-alpha03 and you can check the source code here. ..

Read more