DEV Community

Cover image for Develop & Publish your own SDK in Android - Part 1(Know an AAR file)

Develop & Publish your own SDK in Android - Part 1(Know an AAR file)

Mohit Rajput on January 27, 2019

“Android is the kind of runaway smash hit that techies spend their careers dreaming about.” - Daniel Lyons A few days ago, we launched an Android ...
Collapse
 
pr_gd profile image
prGD • Edited

Thanks for nice post.

I downloaded preference-0.0.1.aar from jcenter.bintray.com/com/otb/utilit...
and added dependency like mentioned here
developer.android.com/studio/proje...

settings.gradle - include ':app', ':preference-0.0.1'
build.gradle - implementation project(path: ':preference-0.0.1')

why will get linker error in this case, is it anything to do with pom.xml?

Collapse
 
mohitrajput987 profile image
Mohit Rajput

It cannot be used by adding aar file manually. The file is signed by bintray and can be used from its dependency only.