Questions tagged [android-module]

146 questions
0
votes
1 answer

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 find one lib there that is myLib.aar, it doesn't…
htafoya
  • 18,261
  • 11
  • 80
  • 104
0
votes
1 answer

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 and store AppComponent Judging from the…
Morozov
  • 4,968
  • 6
  • 39
  • 70
0
votes
0 answers

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 error, SensorPoll is the TimerTask: E/AndroidRuntime:…
HTBuild
  • 53
  • 6
0
votes
1 answer

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") .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) …
0
votes
1 answer

Navigate from one dynamic feature module to another with Jetpack navigation architecture component

How to navigate from the base module or a dynamic module to a dynamic module using the navigation component? How to define the destination module inside the navigation graph?
0
votes
1 answer

GradleException: Android tasks have already been created for multi module shared versions

Trying to follow Jeroen Mols modularization sample, he specifies a nice technique to allow all modules to share version numbers. In the top level project build.gradle, add this: subprojects { afterEvaluate { project -> if…
Daniel Wilson
  • 18,838
  • 12
  • 85
  • 135
0
votes
1 answer

Why can't I call the create method of FakeSplitInstallManagerFactory that only requires Context to be passed?

The new FakeSplitInstallManagerFactory has a create method that takes Context however when I try to use it from my code I only get the method that takes Context and a File which is a directory. If I tell AS to show me the definition of the class, I…
casolorz
  • 8,486
  • 19
  • 93
  • 200
0
votes
2 answers

Use buildSrc module versions in app module

I'm following this tutorial on how to manage Gradle dependencies with Kotlin in my Android app and now I would like to use the versions defined in my Versions object in my app module (the scenario is that I have an open source screen and I want to…
David
  • 901
  • 1
  • 13
  • 37
0
votes
1 answer

How to distribute android sdk publically?

I have build SDK with android modules(aar). How to distribute SDK publically. i.e I want to download this via Gradle build without giving credential example implementation 'com.squareup.dagger:dagger:1.2.2'
Arul
  • 1,031
  • 13
  • 23
0
votes
1 answer

module named 'app' already exists on Android Studio

I did something wrong and I don't know what I did. But the module name has been changed to my-android-app. And I am trying to get it back to app. The default name of single module. I tried Rename Module. But I get. in the drop down menu of build,…
c-an
  • 3,543
  • 5
  • 35
  • 82
0
votes
0 answers

Android Dynamic Delivery: Supertypes of the following classes cannot be resolved ; Unresolved supertypes : android:support:v7:app:AppCompatActivity

I am adding a new dynamic module to my existing project. After adding a dynamic module and making the project give me Supertypes not resolved issue. My existing project is a mixture of Kotlin and Java [Project Settings Gradle][1] [1]:…
0
votes
0 answers

Why am I getting ClassNotFoundException when calling Class.forName() on a class that exists in a different module

So I just moved an activity into our first dynamicModule. I'm trying to navigate to that activity with the following code: private enum class ACTIVITIES(val location: String) { …
Dan Anderson
  • 1,062
  • 13
  • 26
0
votes
1 answer

Export existing android app as aar (like a library)

Background: I have an android application that has been published in GooglePlay and I want to create SDK from that existing application so that others can use it as a library inside their apps. So far: I was able to generate .ARR file from the…
Jayanth
  • 5,954
  • 3
  • 21
  • 38
0
votes
1 answer

No application can perform this action - Shared code with different flavors

I am trying to create a new application ("My New App") from the source of another application that I have ("My Previous App"). In order to do it, I've created a new flavor, changed the app name and new icons for the new flavor, and everything goes…
0
votes
3 answers

ERROR: Attribute application@name is too present

Hello I am developing 2 modules A and B and B depends of A. The last two have a Application class, for get the context staticaly. And in the two modules have them manifest. Module A manifest:
Tlaloc-ES
  • 4,825
  • 7
  • 38
  • 84