From 4e06a4846ed92010dccc1c2781644d140063ad5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=86=E4=B8=AA=E5=92=AA?= <1779084072@qq.com> Date: Tue, 28 Feb 2023 08:43:44 +0000 Subject: [PATCH] update docs/UniMPDocs/UseModule/android/geolocation.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 喵了个咪 <1779084072@qq.com> --- .../UseModule/android/geolocation.md | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/docs/UniMPDocs/UseModule/android/geolocation.md b/docs/UniMPDocs/UseModule/android/geolocation.md index 155388e..918da8e 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节点下配置如下代码** + +``` + + +``` + ## 高德定位 ### 需要拷贝添加的文件 -- Gitee