Questions tagged [android-module]

146 questions
3
votes
0 answers

Can I declare a broadcast receiver into a separate module than App?

I have two modules in my Android project, one is the default one 'app' and another is a 'sample' module, both modules have their separate manifest files. I wish to define a broadcast receiver and it's code into a sub-module - 'sample'. My primary…
Akoder
  • 147
  • 6
3
votes
0 answers

Android multi module circular dependency issue

I want to ask your advice how to solve circular dependency in android multimodule project? What I would like to receive as an answer: ideally clear answer or advice how to solve the issue I have faced, but I also would be thankful for any useful…
yozhik
  • 4,644
  • 14
  • 65
  • 98
3
votes
1 answer

Building aar library from multimodule project

I've got a multi-module Android project which have one module called app which is the Android application, that contains features where each feature is separate module. I would like to extract one of the feature modules as a aar library. I started…
user3448282
  • 2,629
  • 3
  • 25
  • 47
3
votes
2 answers

Do I need to increase version code of a library module?

Consider the following scenario. Suppose, I have made an Application named ABC. I have also made an Android library module named XYZ for reusing some code. I am using module XYZ in the application ABC and I have also uploaded that application in…
Dhaval
  • 2,724
  • 2
  • 24
  • 33
3
votes
1 answer

How can I use main project dependency in my library module in android

I am creating a library for android . I want that my module will use the property that are used in main project . As an example I do no want to define minimum SDK version in my module it will take the value whatever it is defined in main project and…
mW3
  • 189
  • 3
  • 25
3
votes
0 answers

Android Gradle Build failing with error "Could not resolve all task dependencies for configuration ':module:debugFeatureCompileClasspath'"

Could not determine the dependencies of task ':vision:processDebugFeatureManifest'. Could not resolve all task dependencies for configuration ':vision:debugFeatureCompileClasspath'. Could not resolve androidx.core:core:1.0.0. Required by: …
3
votes
1 answer

Annotations: @EViewGroup - annotation argument must be compile-time constant error in Android library module

I'm trying to split some of my existing app code into an android library module. While copying my working code into the module directory I've encountered a problem with annotations where the line @EViewGroup(R.layout.dialog_action_item)casts an…
2
votes
0 answers

Android Studio Layout Editor ConstraintLayout greyed out in dynamic modules

I have been using on demand dynamic modules in by app for a few years now, and in the past this issue did not happen. I noticed this recently as I wanted to work on my dynamic module that the layout editor did not render the ConstraintLayout. The…
2
votes
1 answer

Jetpack Compose Preview fails in Multi Module app

I have a multi module app where I recently began implementing Jetpack Compose. I defined some composables to be shared by different modules. I put those in another library module and imported in relevant places. Example composable: // Nothing…
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
2 answers

Android gradle modules circular dependency

Connecting module application and get following error: Circular dependency between the following tasks: :app:processDebugResources \--- :app:processDebugResources (*) Module structure /app |--base |--authfire Error appears after adding to authfire…
white-imp
  • 313
  • 2
  • 16
2
votes
1 answer

android dynamic asset delivery

I would like to add dynamic asset delivery feature in my app.I need 3 different asset pack to be added . I read the google documentation on this topic but didn't understand anything.Also there no tutorial on youtube . Need step by step procedure.
2
votes
2 answers

Android Studio - How to specify "-jvm-target" option in Java/Kotlin module?

Recently, I was trying to create a Java/Kotlin module for my Android application. When I was creating Retrofit Interceptor, there was an error saying: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM…
Dhaval
  • 2,724
  • 2
  • 24
  • 33
2
votes
0 answers

Calling fragment activity form main project app to the module project app on kotlin android studio

I just want to ask how can I get /call / transfer data from main app to module app in android studio Kotlin? I have 2 modules project inside of my main project example: main [App] then Module [Chatapp] I just want to call class or fragment activity…
2
votes
0 answers

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project: Add app module to android application

I have created an android application and wants to add that as a module to other application. I tried to import the application using: File->New->Import Module->(browse application to import)->(change module name)->Finish After importing the…
1 2
3
9 10