Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate #157

Open
wenjianli92 opened this issue Oct 31, 2022 · 2 comments
Open

Duplicate #157

wenjianli92 opened this issue Oct 31, 2022 · 2 comments

Comments

@wenjianli92
Copy link

What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.

1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.amap.api.fence.DistrictItem found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.DistrictItem$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.GeoFence found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.GeoFence$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.GeoFenceClient found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.GeoFenceListener found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.PoiItem found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.fence.PoiItem$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocation found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocation$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClient found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption$2 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption$AMapLocationMode found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption$AMapLocationProtocol found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption$AMapLocationPurpose found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationClientOption$GeoLanguage found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationListener found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.AMapLocationQualityReport found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.APSService found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.CoordUtil found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.CoordinateConverter found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.CoordinateConverter$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.CoordinateConverter$CoordType found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.DPoint found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.DPoint$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.UmidtokenInfo found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.UmidtokenInfo$1 found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)
Duplicate class com.amap.api.location.UmidtokenInfo$a found in modules jetified-3dmap-9.5.0.jar (com.amap.api:3dmap:9.5.0) and jetified-location-6.1.0.jar (com.amap.api:location:6.1.0)

Go to the documentation to learn how to Fix dependency resolution errors.

@wenjianli92
Copy link
Author

image

@wenjianli92
Copy link
Author

build.gradle中
implementation 'com.amap.api:3dmap:latest.integration'

改为
implementation 'com.amap.api:3dmap:9.2.1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant