Questions tagged [dynamic-delivery]

44 questions
11
votes
1 answer

Android Provider in Dynamic Feature module not found in Base Module

I am using some libraries in my dynamic feature module. These libraries are Adding some providers to the manifest. For example in my build.gradle file in the dynamic module: dependencies { ... implementation…
10
votes
0 answers

Android Dynamic Delivery using React native

I have read about android Dynamic Delivery using Android App Bundles to generate and serve optimized APKs for each user’s device configuration, so users download only the code and resources they need to run your app. I have created an application…
Naveen Kumar H S
  • 1,304
  • 16
  • 30
10
votes
1 answer

Unable to access resources of dynamic-feature module

I am trying to add the new Android dynamic delivery feature to my app, but my attempts to access the resources of the dynamic feature module keep failing. The basic idea is to load a module with no code but a bunch of vector files as drawable…
6rism0
  • 133
  • 7
8
votes
1 answer

Cannot choose between the following variants of project :features:myDynamicFeatureModule:

I am experimenting with Android's Dynamic Feature Modules (a.k.a. on demand modules) on the side of the project I am working on. In my PoC (proof-of-concept) project, Dynamic Feature Modules (DFM) work fine and gradle builds the project with no…
5
votes
0 answers

Not able to access Assets file under dynamic module

I am working with android applications. So far I had some files on my assets which I was able to access using context.getAssets().open(fileName) Now I am trying to integrate a dynamic on demand module with some of app features. And I moved some of…
5
votes
2 answers

Incorrect value of app module dimen/color when using in dynamic-delivery module

I have app module and one dynamic module named - "chat". I have a layout and fragment resides in chat module, in layout there is a android:textSize="@dimen/sp20" written. Dimen is defined in app module due to that it is showing incorrect text size…
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
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") …
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…
3
votes
2 answers

Android App Bundles: there was a problem while parsing the package (dynamic feature module only)

I am trying to implement Android App Bundles and I need it to work outside of the Play store. I have created a new project with an activity containing a button I have created a new Dynamic Feature Module through File > New > New Module > Dynamic…
Cliff Burton
  • 3,414
  • 20
  • 33
  • 47
2
votes
1 answer

Resources$NotFoundException in Dynamic Feature Module - Android

I am getting Resources$NotFoundException in my dynamic feature module while accessing the layout file. Full error logs below. How can I fix this? android.content.res.Resources$NotFoundException: Resource ID #0x7e070001 at…
Ankush Kapoor
  • 445
  • 1
  • 8
  • 20
2
votes
0 answers

How to access Custom View in dynamic feature module in XML?

How can I access the custom view class of the on-demand dynamic module in XML of the main app? Without dynamic module I can simply access as below in XML but I am not sure in case of on demand dynamic module if it is even possible to access custom…
Ankush Kapoor
  • 445
  • 1
  • 8
  • 20
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
0 answers

Can we use dynamic feature modules as SDK?

I am currently developing an application which uses multiple dynamic feature modules. I was wondering if I can ship the same .aab modules as an independent SDK. If not what is the cost of converting the .aab feature to .aar file. Thanks in advance.
CubeRootX
  • 127
  • 2
  • 9
2
votes
0 answers

With Dynamic Feature module not able to build the project

I migrated my project to androidX. After which I was trying to add one dynamic feature module. But after adding it, I am not able to build the project. I am getting an error similar to: Expected configuration ':feature:debugCompileClasspath' to…
1
2 3