3***@qq.com
3***@qq.com
  • 发布:2023-08-11 09:53
  • 更新:2025-03-07 09:50
  • 阅读:357

自定义地图android插件与Uni中Map模块导致地图对应包冲突

分类:uni-app

打包错误日志
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:\"\", local:\"base-extension\"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

FAILURE: Build failed with an exception.

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

    A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
    Duplicate class com.amap.api.maps.AMap found in modules jetified-3dmap-9.5.0 (com.amap.api:3dmap:9.5.0) and jetified-AMap3DSearch-release-runtime (AMap3DSearch-release.aar)
    Duplicate class com.amap.api.maps.AMap$1 found in modules jetified-3dmap-9.5.0 (com.amap.api:3dmap:9.5.0) and jetified-AMap3DSearch-release-runtime (AMap3DSearch-release.aar)
    ...........
    想使用安高德地图离线地图组件,然后在js中世界调用对应的activity没有反应,于是想自己引入高德SDK制作一个插件,最后将插件集成到uni中打包的时候打包错误,具体如上,这个怎么解决

2023-08-11 09:53 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com - 码农

请问解决了吗

要回复问题请先登录注册