Questions tagged [android-module]

146 questions
2
votes
2 answers

Is there an example for using dynamic modules on the Play Store when the dynamic module is used by a library module and not from the main app?

I've looked over Google's examples and codelabs and they look pretty simple but they are for modules that the main app access directly. My problem is that I have a module that the main app never access directly. Basically I have this: App -> Module…
2
votes
1 answer

module was not opening using dynamic feature in android

I am working on the dynamic feature module. I uploaded the .aab file into playstore some times app is unable to open the module throwing the error like this. This is the error getting in logcat: PID: 12715 java.lang.RuntimeException: Unable to…
v teja
  • 613
  • 2
  • 7
  • 17
2
votes
1 answer

Proguard/R8 rule to exclude asset folder

My project is comprised of the main module, followed by other module dependencies. One such dependency is "commons". In "commons" there is an asset folder called "flags" let's say. If we know in advance that this folder will never be used, is there…
2
votes
1 answer

Android project cannot build with gradle after importing a module

I created an android app and I wanted to include the vokaturi module. I changed the vokaturi.gradle file with "com.android.library" and I included ":vokaturi" module in the settings.gradle file and in the main app module I added implementation…
2
votes
0 answers

Android:How two different modules implemented in one project communicate with each other with some data involving view?

Basic Example: Android Module 1 has a Button with a data String x= "Data From Module 1"; Android Module 2 has a Textview; In another android Project which implements both Module 1 and Module 2, when the Button(Module 1) is clicked, Textview(Module…
2
votes
4 answers

Import module on Android Studio

I've got a problem on library importation. I followed these step : File / New / Import Module. Then I go to Project structure, Dependencies and "+". But there is Nothing to show. Is somebody can help me ? Screen :…
Arnaud
  • 81
  • 1
  • 10
2
votes
1 answer

Android App and Library that both use Glide - appPackage1.GlideRequests cannot be cast to appPackage2.GlideRequests

I'm hoping someone has run into this before and its just an easy setting that i'm missing. Basically i've built a Kotlin Library that uses Glide, and uses dagger to set up my glide instance in that library. This library by itself, and in a dummy…
Kyle
  • 1,430
  • 1
  • 11
  • 34
2
votes
0 answers

How to get Module Package Context in Android

How can I get module (sub-module / imported as a module dependency) context with module package name ? I need a context in submodule with their own packagename (module's package name) to use. Example : Main App (com.main.app) has a module dependency…
Parth Patel
  • 6,498
  • 3
  • 16
  • 29
2
votes
0 answers

Android module and library bidirectional communication

I have an android application in which I have an app moduleand a social module. The social module is implemented as an android library In my app modules' build.gradle I have mentioned implementation project(':social') which helps me invoke the…
Muhammad Ahmed AbuTalib
  • 4,080
  • 4
  • 36
  • 59
2
votes
1 answer

android how to accsess base module drawables in feture module xml files

i have base module which is library module and the feature module which is my application how can i set the src of the imageView which is in the some layout of the module feature to the drawable file which i have in base module ? i have tried this…
Amir Hossein Mirzaei
  • 2,325
  • 1
  • 9
  • 17
2
votes
0 answers

instantapp:checkReleaseLibraries Error

Got gradle error when build my instant app project. Features [:feature1, :feature1] all package the same library [com.squareup.retrofit2:adapter-rxjava]. Features [:feature1, :feature1] all package the same library [reviews_lib::release]. and so…
2
votes
1 answer

How to add native module to Cordova Android project?

I want to add a native (integration test) module to a Cordova Android project. For fully native projects, you just add a new module, commit and be done with it. But for Cordova I of course don't really want to mess with the generated Android project…
janpio
  • 10,645
  • 16
  • 64
  • 107
2
votes
1 answer

Firebase not connecting completely with two modules in project where one is library module

I have imported sevral libraries in my app.One of them works only when a separate module is created in the project folder.Finally after connecting to firebase ,it doesn't connects completely.In firebase pane (In Android Studio) it shows: 1 of 2…
2
votes
1 answer

In which module should the theme for an instant app be defined?

After modularsing my app, the primary color changed from blue to orange. Hence, activity background, floating buttons, etc. changed. The app theme is defined in the app module and uses @color/primary_color. The color is defined in the base…
friedger
  • 645
  • 7
  • 21
2
votes
1 answer

Manifest merge failed : when using kotlin module

I have android studio module "domain" which has kotlin files. I tried to using it as library for my app module like this. compile project(':domain') I get merge conflict error Error:Execution failed for task…
erluxman
  • 18,155
  • 20
  • 92
  • 126