harish Padmanabh
harish Padmanabh

Reputation: 143

Android Sdk Development with ui and api calls

I have an app running live on the play store. Now I want to add another module or say it an SDK as the implementation dependency in the Gradle file. I have tried creating a new module in the project but the res folder is not available in it. it is important for me as I have activities and api calls in my sdk .

Basically, what I need is if I have a button, and clicking on that should open an activity from the new module or SDK I have to develop.

At last I have to give the implementation link for the library which needs to be in Gradle file of the projects main app .

Also, i need to do this in kotlin

How to approach this? What is the best practice?

Upvotes: 1

Views: 252

Answers (1)

Leonardo Paixão
Leonardo Paixão

Reputation: 81

First of all, be sure that the reference of the new module was declared in settings.gradle with include ':package-name'

If you want to make the code of the new module available for another you need to declare it in the gradle file of the module where you want to use.

dependencies {
   implementation project(':package-name')
}

Upvotes: 1

Related Questions