diff --git a/docs/UniMPDocs/UseModule/android/geolocation.md b/docs/UniMPDocs/UseModule/android/geolocation.md index 155388e0697764a6a005b00273920ab2b85bb630..918da8ee09cf4b86791105bf7de3a655a3e3b3b1 100644 --- a/docs/UniMPDocs/UseModule/android/geolocation.md +++ b/docs/UniMPDocs/UseModule/android/geolocation.md @@ -1,3 +1,60 @@ +## 百度定位 + +### 需要拷贝添加的文件 +| 路径 | 文件 | +| :-------: | :-------: | +| uniMPSDK\Features\libs | baidu-libs-release.aar, geolocation-baidu-release.aar | + +### 通过gradle集成百度定位SDK + +在主工程的build.gradle文件配置dependencies + +``` +android { + xxxxxxxx + defaultConfig { + xxxxxxxx + } +} +dependencies { + xxxxxxxx + implementation files('libs/baidu-libs-release.aar') + implementation files('libs/geolocation-baidu-release.aar') +} +``` + +### Androidmainfest.xml文件需要修改的项 + +**需要在application节点前添加权限** + +``` + + + + + + + + + + + + + +``` + +**application节点下配置如下代码** + +``` + + +``` + ## 高德定位 ### 需要拷贝添加的文件