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

@jefn76 试试在 android/app/build.gradle 的 dependencies {} 里加入这段: #837

Open
csyuser opened this issue Dec 9, 2024 · 2 comments

Comments

@csyuser
Copy link

csyuser commented Dec 9, 2024

          @jefn76 试试在 android/app/build.gradle 的 dependencies {} 里加入这段:
implementation(project(':react-native-amap-geolocation')) {
    exclude group: 'com.amap.api', module: 'location'
}

Originally posted by @qiuxiang in #778 (comment)

@csyuser
Copy link
Author

csyuser commented Dec 9, 2024

我试了还是会有这个报错
`
FAILURE: Build failed with an exception.

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

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.amap.api.fence.DistrictItem found in modules 3dmap-9.6.0.jar -> 3dmap-9.6.0 (com.amap.api:3dmap:9.6.0) and location-6.2.0.jar -> location-6.2.0 (com.amap.api:location:6.2.0)
Duplicate class com.amap.api.fence.DistrictItem$1 found in modules 3dmap-9.6.0.jar -> 3dmap-9.6.0 (com.amap.api:3dmap:9.6.0) and location-6.2.0.jar -> location-6.2.0 (com.amap.api:location:6.2.0)
Duplicate class com.amap.api.fence.GeoFence found in modules 3dmap-9.6.0.jar -> 3dmap-9.6.0 (com.amap.api:3dmap:9.6.0) and location-6.2.0.jar -> location-6.2.0 (com.amap.api:location:6.2.0)
Duplicate class com.amap.api.fence.GeoFence$1 found in modules 3dmap-9.6.0.jar -> 3dmap-9.6.0 (com.amap.api:3dmap:9.6.0) and location-6.2.0.jar -> location-6.2.0 (com.amap.api:location:6.2.0)
`

@hi-zd
Copy link

hi-zd commented Dec 12, 2024

我也遇到了 解决了吗?

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

2 participants