All Products
Search
Document Center

Mobile Platform as a Service:Resolve AMap location conflicts

Last Updated:Jun 03, 2026

mPaaS includes a built-in AMap location SDK. If you also integrate the Google Play-approved version of the AMap SDK, both SDKs share the same group:artifact identifier, causing Gradle to fail when it cannot resolve the version conflict. To fix this, remove the built-in AMap location SDK from mPaaS before your build.

Important

Baseline 10.1.32 does not support integrating a location SDK, so this conflict does not occur on that baseline.

Remove the built-in AMap location SDK

Steps

  1. Identify the AMap location SDK version bundled in mPaaS, then select a matching or compatible version from the Google Play marketplace.

    The bundled versions are:

    'com.alipay.android.phone.mobilecommon:AMapSearch:6.1.0_20180330@jar'
    'com.alipay.thirdparty.amap:amap-location:4.7.2.20190927@jar'
  2. Note the group:artifact coordinates for the built-in AMap location SDK:

    'com.mpaas.group.amap:amap-build'
  3. Exclude the built-in AMap location SDK using the configuration that matches your integration type.

    • AAR method

      configurations {
      all*.exclude group:'com.mpaas.group.amap', module: 'amap-build'
      }
    • Component-based (Portal & Bundle)

      mpaascomponents {
      excludeDependencies = [
         "com.mpaas.group.amap:amap-build"
      ]
      }