Questions tagged [dynamic-feature-module]

155 questions
2
votes
0 answers

Data binding does not work in dynamic feature module, causing null pointer exception when referring to binding's views

I have a dynamic features module called favorite. This module has an install-time delivery. In this module, I am using data binding. However, when I want to access the ID of a view, it says that the view is null. Take a look at the XML layout…
Richard
  • 7,037
  • 2
  • 23
  • 76
2
votes
0 answers

How to run UI Tests with modules and dynamic feature

I'm currently playing around with the dynamic features. I'm not able to run any UI tests. My app has three modules as shown on the diagram: app - the usual module dynamicFeatureA - the dynamic feature module. It must depend on app. That's a…
Todor Kostov
  • 1,789
  • 1
  • 13
  • 20
2
votes
3 answers

Build fails with 'task :features:catalog:createDebugCompatibleScreenManifests FAILED' while refactoring to dynamic feature modules on android

Once I introduced dynamic feature modules into my app, I was able to successfully refactor feature one (orders), build and deploy. But on refactoring the second module, i.e moving files and resources to that module, I get this error on…
2
votes
2 answers

How to exclude a dynamic feature from Android app flavor?

I have this project structure: app library1 dynamicFeature1 dynamicFeature2 Now, I want dynamicFeature2 to only be included in my development builds, and never appear in anything that could be released. I used productFlavors like this: …
pratclot
  • 326
  • 2
  • 8
2
votes
1 answer

Android dynamic feature stuck at installing view although it says it is installed

I use dynamic feature module in my app and here is my App class - @HiltAndroidApp class DogApp : SplitCompatApplication() { override fun attachBaseContext(base: Context?) { super.attachBaseContext(base) …
2
votes
1 answer

Instant Dynamic Feature with Dynamic feature guide

I'm confused with the dynamic instant app documentation setup guide from android itself, therefore guidance and links are much appreciated :) What I understood from reading the documents is the actual "app" will convert into "base", creating another…
Arduino
  • 285
  • 1
  • 3
  • 17
2
votes
0 answers

Android Navigation Dynamic-feature module deeplink not working

I'm using jetpack navigation component with single activity structure and dynamic feature module approach to separate application modules. I don't want make modules on-demand for now, so all of them will install on installation base app module. In…
2
votes
3 answers

How to get identifier for a resource inside Android dynamic module?

I am working on Dynamic Module Feature Delivery and i have some drawable resources inside the dynamic module as well. The problem i am facing is that i cannot get identifiers for the resources however if i directly reference any of them then it…
2
votes
1 answer

Resource shrinker cannot be used for multi-apk applications

So today I decided to try my hand at making at making a dynamic feature module. I have R8 enabled with both minifyEnabled and shrinkResources set to true. Trying to compile gives me the following error. Resource shrinker cannot be used for multi-apk…
2
votes
0 answers

Using Dynamic Feature Module: Fonts downloaded and installed in Asset folder but is not rendering in PDF-VIEW but renders in APP-UI-VIEW?

I created a dynamic feature module (consists of assets, fonts, and files) which will be downloaded and installed when the user taps onChooseFontClicked(). The dynamic-module is being downloaded and installed, but the fonts are not rendering in the…
jazzbpn
  • 6,441
  • 16
  • 63
  • 99
2
votes
1 answer

Multiple APKs packaging the same library can cause runtime errors with only one dynamic module on AGP 4.0.1?

I have only one dynamic feature module in my project called search, But when I try to build project, I get that Error: [:search, :search] all package the same library [androidx.recyclerview:recyclerview]. Multiple APKs packaging the…
MR3YY
  • 638
  • 1
  • 8
  • 18
2
votes
2 answers

Using Firebase Libraries in a Dynamic Feature Module

I'm trying to use FirebaseAuth in a dynamic feature module but I'm getting a: java.lang.AbstractMethodError: abstract method "com.google.android.gms.common.api.Api$Client…
2
votes
0 answers

Get Assets Storage Location in Dynamic Feature Module

I am working on Dynamic Feature Module, In which I am putting my sqlte.zip file under feature->res->database->sqlte.zip. In my base app module, I want the database path of sqlte.zip as a String path after the zip is downloaded. The download is…
2
votes
2 answers

Getting this error "Modules 'base' and 'moduleA' contain entry 'res/drawable/xyz.xml' with different content."

moduleA is a dynamic feature module with dependency which is an aar lib. dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':app') implementation(name:'lib', ext:'aar') } It builds…
2
votes
1 answer

Split install requested but the app is not owned

I meet a very weird issue about installing dynamic feature module. It shows these error: ? W/Finsky: [1947] wiz.a(70): Split install requested but the app is not owned, package: xxx ? I/PlayCore: UID: [10165] PID: [29261] SplitInstallService :…