Live Location with AMAP and Android Architecture Component
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.conanchen:AmapLiveLocation:1.0.3'
}
<application ...>
<meta-data android:name="com.amap.api.v2.apikey" android:value="your amap api key">
//高德开放平台申请的key
</meta-data>
</application>