user3648435
user3648435

Reputation: 471

how to use a project source code in another app module

I'm developing an application which includes multiple subproject. for example, it contains a calendar, a calculator and weather. for saving time I want to use source codes from Github. I found a calendar source in GitHub and import that as module and then I want to open calender's Mainactivity in a mainapp activity. I tried to add a dependency from the main module to the calendar module but the android studio doesn't allow this function. I will be grateful for any answer that helps me to use the calendar source code in my main project.

Upvotes: 1

Views: 276

Answers (1)

Sepehr B
Sepehr B

Reputation: 41

I think jitpack library is what you are looking for. You can import github projects as a dependency in your build.gradle file (like maven dependencies).

Note that you cant edit the github project directly in your project.

Upvotes: 2

Related Questions