Questions tagged [android-module]

146 questions
1
vote
1 answer

How to add a module dependency while building an AAR

I created one library project with two modules. I added the 2nd module in the dependencies of the first module like this: implementation project(":module2") I am able to generate the AAR file after this. But I'm…
PPB
  • 151
  • 1
  • 14
1
vote
1 answer

Android Library - When I import libraries containing each other, is the same library added to the project more than once?

I have :a, :b and :c libraries in an android project and I am submitting them separately to GitLab as maven repos. The :a library imports the :b library. implementation(":b") The :b library imports the :c library. implementation(":c") In my :app…
1
vote
1 answer

How to access a module into another module of Android

I'm having few different variants and for each variant I'm having different module into my project but now I got a new requirement where I'll have to use an existing module in a new build variant. It means if any changes happen in code of variant1…
Anshul Tyagi
  • 2,076
  • 4
  • 34
  • 65
1
vote
0 answers

Could not resolve all task dependencies for configuration

./gradlew clean assembleDebug Could not determine the dependencies of task ':demoApp:compileDebugJavaWithJavac'. > Could not resolve all task dependencies for configuration ':demoApp:debugCompileClasspath'. > Could not resolve project…
Francis Bacon
  • 4,080
  • 1
  • 37
  • 48
1
vote
0 answers

Work with Hilt with submodules of a feature module

Is there any way to make dagger hilt work with clean architecture that uses the presentation-domain-data as submodules? For example I have Feature A as a module. This module has 3 submodules: Presentation module Domain module Data module How could…
Barrufet
  • 495
  • 1
  • 11
  • 33
1
vote
1 answer

Can two Android themes include common values without inheriting from one another?

I'm trying to keep my application clean by breaking functionality into multiple modules. :App :Features:Foo :Features:Bar :Ux I've defined my application's theme in themes.xml in the :Ux module, and then it's used throughout the application.
Aidan64
  • 573
  • 1
  • 5
  • 12
1
vote
0 answers

Adding module gives me a resolve dependency error

I am new to android programming and when I try to add this module https://github.com/FreesoulApps/PreviewAndroid I get unable to resolve dependency on line 78 on my build.gradle file: RELEVANT INFORMATION Module to be added setting.gradle file…
mhassan
  • 83
  • 5
1
vote
0 answers

How to blocking access to some libraries using Android Fat AAR

I can get an aar output by connecting multiple modules using Fat AAR. But there are modules in these multi modules that should not be accessed by the application. I am using this library for fat aar https://github.com/kezong/fat-aar-android If I use…
Sina
  • 21
  • 2
1
vote
0 answers

How do I define these undefine android kernel modules in android 10?

I am trying to build hybris boot using some tried and true forked lineage os 17.1 source for nexus 10. Originally I got this error: error: packages/services/Telecomm/Android.bp:28:1: "TelecomUnitTests" depends on undefined module…
1
vote
1 answer

How is data transferred between modules in Android?

How do I transfer data between modules? B module implements A module. So module B can access module A. But module A cannot access to module B. How can I send data from the some activity in module A to the some activity in module B? The activity in…
Murat Çakır
  • 150
  • 1
  • 14
1
vote
1 answer

How to convert a module dependency to aar dependency in android?

I have an android base project where I have some reusable module so that I can use them in any projects, I have 4 module dependency such as - moduleOne moduleTwo moduleThree moduleFour Where I have defined in moduleThree's gragle - …
Bajrang Hudda
  • 3,028
  • 1
  • 36
  • 63
1
vote
1 answer

Reflection fails in signed build Android

I'm modularising our ongoing project. Let's say there is an app module. And 'n' number of other modules. These modules implement app module (i.e implementation project(':app_module')) From app module I need to launch Module 1..n I've used…
Chat
  • 41
  • 1
  • 6
1
vote
0 answers

How to export an Android module as a full project

I have an Android project with many modules inside ( as small projects ) , i want to export or externilize one module as an independant project. is there a simple way to do it or should i recreate a new project ?
Anass Boukalane
  • 539
  • 10
  • 26
1
vote
0 answers

Build error when trying to instantiate a class in another module

I must be missing something pretty obvious, but I need to find an answer for this. I started to modularize my app, and this is the setup: The :database module should abstract the connection to the database. But when I remove the dependency of…
amp
  • 11,754
  • 18
  • 77
  • 133
1
vote
1 answer

shrink resources does not work for libraries modules

I have some library modules in my application and there are a lot of resources that are unused. But they did not remove in release build. minifyEnabled has been set true in release buildType and also shrinkResources has set true in app module. Note:…
beigirad
  • 4,986
  • 2
  • 29
  • 52