全部产品
Search
文档中心

移动开发平台mPaaS:解决 uccrash 冲突

更新时间:Jul 30, 2026

冲突说明

mPaaS 基线中的 uccrash 后续可能不再维护, 10.2.3.79 及以上版本支持使用 mPaaS Native 诊断组件替换 uccrash。如果您需要使用 mPaaS Native 诊断组件,请参考以下方案。

解决方案

移除 uccrash 库,使用 mPaaS Native 诊断组件

操作步骤

  1. 移除 uccrash 库。

    • 如果您采用原生 AAR 方式接入 mPaaS,需执行如下操作:

      configurations.configureEach {
          resolutionStrategy {
              exclude group: 'com.mpaas.uc.crash', module:'uccrash-build'
          }
      }
    • 如果您采用组件化(Portal & Bundle)方式接入 mPaaS,需执行如下操作:

      mpaascomponents {
      excludeDependencies = [
      "com.mpaas.uc.crash:uccrash-build"
      ]
      }
  2. 接入 nativediag 组件。

    dependencies {
        ...
        implementation "com.mpaas.android:nativediag"
        ...
    }