更换类库,解决编译报错问题。

This commit is contained in:
ZhanGSKen
2025-04-04 13:22:41 +08:00
parent f9e48a159d
commit 5cb4f6c409
4 changed files with 16 additions and 10 deletions

View File

@@ -58,12 +58,16 @@ dependencies {
// 定位服务 // 定位服务
api 'com.google.android.gms:play-services-location:20.0.0' api 'com.google.android.gms:play-services-location:20.0.0'
// 腾讯地图 // 腾讯地图
api 'com.tencent.map:tencent-map-vector-sdk:6.2.1.250120.3f971009.140342819' //api 'com.tencent.map:tencent-map-vector-sdk:6.2.1.250120.3f971009.140342819'
// 腾讯地图基础 // 地图
api 'com.tencent.openmap:foundation:0.5.6.9be4e02' api 'com.tencent.map:tencent-map-vector-sdk:4.5.6'
api 'com.tencent.map:sdk-utilities:1.0.9' // 地图组件库,包括小车平移、点聚合等组件功能,详见开发指南。
api 'com.tencent.map:sdk-utilities:1.0.6'
//api 'com.tencent.openmap:foundation:0.5.6.9be4e02'
api 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.5.4.3' api 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.5.4.3'
api 'com.google.code.gson:gson:2.8.5' api 'com.google.code.gson:gson:2.8.5'
// 权限申请框架 // 权限申请框架
//implementation 'pub.devrel:easypermissions:2.0.1' //implementation 'pub.devrel:easypermissions:2.0.1'

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Thu Apr 03 13:23:15 GMT 2025 #Fri Apr 04 05:21:19 GMT 2025
stageCount=0 stageCount=0
libraryProject= libraryProject=
baseVersion=1.0 baseVersion=1.0
publishVersion=1.0.0 publishVersion=1.0.0
buildCount=410 buildCount=412
baseBetaVersion=1.0.1 baseBetaVersion=1.0.1

View File

@@ -87,8 +87,9 @@ public class MainSimpleActivity extends AppCompatActivity implements /*EasyPermi
mLogView = findViewById(R.id.logview); mLogView = findViewById(R.id.logview);
mLogView.start(); mLogView.start();
TencentMapInitializer.setAgreePrivacy(this, true); TencentMapInitializer.setAgreePrivacy(true);
TencentMapInitializer.start(this); //TencentMapInitializer.setAgreePrivacy(this, true);
//TencentMapInitializer.start(this);
TencentLocationManager.setUserAgreePrivacy(true); TencentLocationManager.setUserAgreePrivacy(true);

View File

@@ -86,8 +86,9 @@ public class TXMSFragment extends Fragment implements /*EasyPermissions.Permissi
View viewRoot = inflater.inflate(R.layout.fragment_txms, container, false); View viewRoot = inflater.inflate(R.layout.fragment_txms, container, false);
locationPostionModelList = new ArrayList<PostionModel>(); locationPostionModelList = new ArrayList<PostionModel>();
TencentMapInitializer.setAgreePrivacy(getActivity(), true); TencentMapInitializer.setAgreePrivacy(true);
TencentMapInitializer.start(getActivity()); //TencentMapInitializer.setAgreePrivacy(getActivity(), true);
//TencentMapInitializer.start(getActivity());
TencentLocationManager.setUserAgreePrivacy(true); TencentLocationManager.setUserAgreePrivacy(true);
mapView = viewRoot.findViewById(R.id.mapview); mapView = viewRoot.findViewById(R.id.mapview);