I am building an Android library (say, MyLibrary
) which will be added to other apps of my company. The library has some dependencies in the build.gradle
file like this:
dependencies{
implementation 'com.alimuzaffar.lib:pinentryedittext:2.0.6'
implementation "com.google.android.gms:play-services-auth-api-phone:17.3.0"
// ... other dependencies
}
After making the library, I created a Github package, so I can add it to another app (say AppDemo
) in AppDemo
s build.gradle
file like this:
dependencies{
implementation 'com.mycompany:mylibrary:1.2.3'
// other dependencies
}
The problem is I get dependency errors, that is, MyLibrary
s dependencies (in this example, pinentryedittext
, play-services-auth-api-phone
as shown in the library's build.gradle
file above) are missing.
I have googled the problem and tried out some solutions, such as, Mobbeel fataar gradle plugin,and some other similar plugins, but I could not make them work.
Could anyone help my with this or give me a working sample? Any help will be appreciable.