153 questions
0 votes
1 answer
41 views
Is a good design to create 2 modules for keeping Glance compose fun from main module?
I'm trying to import Android Jetpack Glance to create widgets. To avoid importing the wrong Compose functions, I think it's good practice to create two separate modules. GlanceWidget module ...
1 vote
0 answers
45 views
Android Multi module Build Error: Could not determine the dependencies of task ':app:checkDebugLibraries'. Could not resolve project :payment
I am getting this error for my multimodule android app when I run gradle clean build FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:...
4 votes
1 answer
1k views
Composable throws "kotlin.NotImplementedError: An operation is not implemented: Unknown file" compile error
I wish to have an interface which has a composable function Show like this in Android project feature module A. interface AInterface { @Composable fun Show(modifier: Modifier = Modifier) } ...
0 votes
1 answer
82 views
How to customise downloading UI for on demand instant modules in android
Currently when requesting another instant module using url deep linking, like so: val intent = Intent(Intent.ACTION_VIEW, uri) intent.setPackage(applicationContext.packageName) intent....
0 votes
1 answer
69 views
It is not possible to use resources from one module in another
I have two modules in my application: app and management. I need to use some features of the app module in the management module, however, when I try to access the following error appears for the file ...
0 votes
1 answer
402 views
How to add module inside an Android module?
Having the following structure. -root app module1 module2 libs submodule How to add module inside an Android module? This means that the module2 should still detect the submodule even without ...
2 votes
2 answers
243 views
Correctly configure a release build - once per project or in all modules?
I've created my first Android project with two modules (:app and :additionalModule). Now I want to create a release build with isMinifyEnabled = true and all these things. Do I have to configure that ...
2 votes
2 answers
4k views
Create a new configuration and set its BuildTypeAttr for a module in Android gradle
Following this stack overflow answer Error building Android library: Direct local .aar file dependencies are not supported to solve my original problem, on my module i created a build.gradle file with ...
0 votes
1 answer
201 views
Creating a Dynamic Delivery Module in Android with Conditional Inclusion at Install Time
I am working on an Android project where I need to create a dynamic delivery module. However, during the module creation, I am presented with the following options: Do not include module at install-...
1 vote
0 answers
228 views
Create android library through maven publish which is having a dependency on AAR file
I am publishing my custom library to maven local and using it in my project. However recently my library is dependant on a AAR dependency and I am unable to bundle it with my custom library. I have ...
0 votes
0 answers
138 views
How to Include Complete Flutter Modules in Android AAR Artifact Library?
I am working on creating an Android SDK module that includes a Flutter module. I have followed the instructions provided in the official Flutter documentation here to integrate the Flutter module into ...
3 votes
2 answers
1k views
How to setup HILT DI in layer base multi-module android application
I am creating an Android Application based on Clean Archtecture with App Modularization. I have modularized the app by 4 layers (:presentation, :domain:, :data, commons). The required hierarchy is as ...
3 votes
0 answers
219 views
Run Espresso/Cucumber UI testing for modular project in Android
I wrote a UI test scenario by Cucumber and Espresso for a modular Android project. This project has a module that depends on the Base module. When I run the test I got an error in the xml layout, ...
0 votes
1 answer
888 views
How to refactor an android library module to kotlin module in Android Studio?
I have removed the android library dependencies to some of the modules in my app and would like to convert these modules to pure 'java or kotlin' modules. What is the best way to do this in Android ...
0 votes
1 answer
199 views
what is the dependency graph tool used by the "Now in Android" sample app from google?
The now in android sample app can be found here. Within the docs folder it has some really nice dependency graphs for the modules. How did they create these dependency images? Does anybody know how I ...