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 ...
0
votes
0
answers
110
views
How to Find Video File in Another Module - Android Studio
My project includes two modules, one main module with all the XML, Kotlin files, and images, and another with all the video files. I had to do this because my app has like 20 videos and it exceeds ...
0
votes
1
answer
31
views
How to import modules in android studio?
I am importing new module which have another module inside it also, into another project but the finish button not working?
Do anyone has solution for that?
2
votes
1
answer
781
views
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 ...
0
votes
1
answer
940
views
How to call a Link a Native Android Module Library in React Native
I've been tring to use an Android Library Module but my React Native project fails building whenever I add it as a dependancy :
build.gradle
dependencies {
. . .
implementation project(path: ':...
15
votes
5
answers
23k
views
java.lang.NoSuchMethodError: No static method for Jetpack Composable
I'm creating an Android Library for basic dialogs. Right now, all I have is a basic-dialogs module along with the app module. I'm calling a composable in the basic-dialogs module from the Activity in ...
1
vote
1
answer
636
views
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 ...
3
votes
1
answer
567
views
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 ...
1
vote
1
answer
2k
views
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 ...
2
votes
0
answers
84
views
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 ...
2
votes
1
answer
4k
views
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 ...
1
vote
0
answers
519
views
DeepLinkDispatch with different modules (libraries)
I'm trying to add DeepLinkDispatch library (by airbnb) in my project in order to handle deeplinks. The project has different modules and some links needs to be handled by Activity's in this modules.
...
0
votes
0
answers
277
views
Android. Style for DialogFragment not working
I have project with two modules: app and design_utils. Inside my app module I use DialogFragment. I need to set style for my DialogFragment views from design_utils module. In turn, the design_utils ...
3
votes
0
answers
1k
views
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,...
1
vote
0
answers
452
views
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:...
0
votes
0
answers
807
views
App crashes due to module library dependency
I have module in Android app. This module uses the Airship library. I have imported this module in my project and used it.
Scenario: If both my app and module gradle has the Airship library, ...
0
votes
1
answer
130
views
How do I create an Android library module in Android Studio which contains debug and main packages instead?
I want to create an Android library module which contains main and debug packages only in the Java root. Whenever I create a new Android library module, I get the usual in the Java root which are main,...
0
votes
1
answer
609
views
android manifest optional meta-data
When writing a module there is a developer-mode option switch that I want to get from the developer by the project's gradle file.
So I am geting it by manifestPlaceholders in the project's gradle:
...
1
vote
0
answers
312
views
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:
...
1
vote
1
answer
259
views
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 ...
1
vote
0
answers
50
views
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 ...
15
votes
2
answers
4k
views
Hilt in non-android module clean architecture setup
I have a multi modular android app setup which consists of a Data, Domain and Presentation module. The Domain module is java-only. I know it's possible to support hilt in non-android modules by adding:...
1
vote
1
answer
142
views
How to block access to some libraries using Android Fat AAR
I can get an aar output by combining multiple modules using Fat AAR. But there are modules in this combined-module that should not be accessed by the application. I am using this library for fat aar ...
0
votes
1
answer
176
views
Why do I get an error when creating a new module in Android Studio? [duplicate]
So I just created a new module and everything on the module is red. I'm not sure what's happening?
The error message is shown above
0
votes
1
answer
1k
views
Can we access classes/functions of On demand dynamic Module in our base app code?
We have created a demand dynamic module, this module just have the functionality of printing the data through a thermal printer, it doesn't have any activity. We need to access the classes and ...
1
vote
0
answers
953
views
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: "...
13
votes
7
answers
38k
views
java.lang.NoSuchMethodError: No static method 'myMethod'
I have a extension method:
fun StoresClientFragment?.onClickButtonBack(){
this?.listener?.onStoresFragmentClickBtnMenu()
}
The app installs without any errors; but when the method is invoked at ...
2
votes
1
answer
1k
views
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....
2
votes
2
answers
4k
views
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
|--...
1
vote
1
answer
2k
views
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 ...
0
votes
1
answer
199
views
Android Studio - Building library aar file doesn't append flavor or buildType to output
I am running assemble for my library module , I see from logs that it should generate two files myLib-release.aar and myLib-debug.aar inside the myLib/build/outputs/ folder.
However, I always only ...
0
votes
1
answer
306
views
How can I return a component from Application to module?
Trying to understand the following example and do something similar.
In my application there is a module, in which I want to use Dagger.
To do this I need an Application class in which I initialize ...
1
vote
1
answer
879
views
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 ...
0
votes
0
answers
114
views
ExceptionInInitializerError When trying to call a TimerTask from Main Android application in a library module
I have a TimerTask in a library module I use, I have access to the source code and it worked independantly, however when I call the method startPoll()from the main application i get the following ...
3
votes
1
answer
2k
views
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 ...
0
votes
1
answer
183
views
Is there a way from one Phone/Tablet module start Activity to another module activity within the same app without creating a new app in Android?
val intent = Intent(Intent.ACTION_MAIN)
.addCategory(Intent.CATEGORY_HOME)
.setClassName( "com.example.AnotherPhoneTabletModule","com.example.AnotherPhoneTabletModule.MainActivity")
...