Questions tagged [android-module]
146 questions
1
vote
3 answers
How to pass a variable (local language) between two modules of Android app?
I have two modules of app: one for configuration settings and second - a game based on the configuration settings. In configuration app I choose language of the app (variable myLocal) and want to pass this variable to the second module. Do you know…

ctrone
- 11
- 2
1
vote
2 answers
Gradle module type
I have multi module project. There are 2 types of modules: Java library(apply plugin: 'java-library') and Android library(apply plugin: 'com.android.library'). I have a custom gradle task and I need somehow to get module type. Which module property…

Yamko
- 535
- 1
- 3
- 13
1
vote
1 answer
Why Modules are not showing in app module dependency
I am trying to add module in my main app but its not showing in select
section.I am using android studio 3.4.1
Android Root Directory
gradle setting
Module dependency

Ahmed Mujtaba
- 744
- 5
- 16
1
vote
0 answers
How to import new Module's in Android Studio correctly
if i starting a project from scratch. I create some new modules
and specify the dependencies in testModule3.
i always get the error message
what's the reason?
i know in this testProject i removed the app-module but it doesn't make any…

masi mojib
- 51
- 1
- 1
- 5
1
vote
1 answer
Android Studio - Share dependencies between multiple modules causes error
I am implementing an Android app which have two modules. The app module uses library module. There is a dependency in library's build.gradle file:
api "se.emilsjolander:stickylistheaders:2.7.0"
and this library is used inside app module's xml…

Amani Elsaed
- 1,558
- 2
- 21
- 36
1
vote
1 answer
App Bundle - Dynamic feature modules : Base project not found in dynamic feature module error
I am working on a gradle android project which has custom project structure. We used sourceSets.main apis to make mappings for "AndroidManifest.xml ", "res" and others. There are no issues with this set up and all the functionality works fine.
In…

Shanker
- 864
- 6
- 24
1
vote
2 answers
Android Studio Module gradle clean install gives error com.android.volley does not exist
Scenario
I am trying to create my first android library that is an extension of Volley and provides classes for Django REST Framework APIs integration. There are no views, only Java Classes.
Here is what my dependencies looks like in…

Himanshu Shankar
- 735
- 1
- 6
- 24
1
vote
1 answer
Android Override file from library/base
I have made a project in which I have made my source as base and made other modules per client dependent on base source which we call as library.
Those modules have dependency on our base code. All they are doing is starting BaseMainActivity from…

A.s.ALI
- 1,992
- 3
- 22
- 54
1
vote
1 answer
Split fragments into separate modules
I have an activity with BottomNavigationView and 2 fragments that change based on that bottom buttons. (The same situation will be with the drawer setup or ViewPager or any other fragment-based approach)
How do I extract the fragments into separate…

TpoM6oH
- 8,385
- 3
- 40
- 72
1
vote
1 answer
Navigation for app with multiple modules using single NavHostFragment
I have an app with multiple feature modules that I want to navigate using a single NavHostFragment in my main module.
app
| | |
feature1 | feature2
| | |
common
The nav graph seems to work fine (I can add all the…

TeKo
- 465
- 1
- 5
- 17
1
vote
0 answers
Could not get unknown property 'applicationVariants' for object of type com.android.build.gradle.FeatureExtension
I'm attempting to update my application's modules in order to add an instant app module to my current application.
I've been following along with this tutorial:
Codelabs sample android-instant-apps
Google instant App samples at github
However…

hermt2
- 844
- 3
- 14
- 33
1
vote
0 answers
Module dependecies and manifest file not merge with my application
I have created my android project as a module following this link
Then Added this module in new demo android project as a .aar library
But when I am running my demo application it is giving me error Gradle dependencies not found and Module…

Nivrutti Pawar
- 514
- 3
- 17
1
vote
0 answers
How to share buildVariant cross not related modules with gradle
I have an Android app with two android modules (data and domain), following this arch
App (Presentation) -> Domain <- Data
It means that app and data have a domain dependency (therefore app and data don't have a dependency between themselves)
I…

rafaelasguerra
- 2,685
- 5
- 24
- 56
1
vote
0 answers
Cannot import cloudendpoint libraries of backend module in android studio
I have created a backend module that contains the endpoints classes. It also has libraries that contain the endpointapi classes. During compile time, I am able to import both, the classes of that module and its library in the MainActivity file of…

Thanatos
- 282
- 5
- 18
0
votes
0 answers
Access resource from an other module
I am building a multi module app. On my "onboarding" module I need to access some resources of the shared module "ui", like colors or dimensions.
So in the build.gradle file of the onboarding module I have
dependencies {
implementation…

giordy16
- 275
- 1
- 12