莱克斯瑞
莱克斯瑞
  • 发布:2022-10-10 14:03
  • 更新:2022-10-10 14:25
  • 阅读:256

云打包一直可以最近两天报错了 怎么回事

分类:HBuilderX

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 okhttp3.CacheControl found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.CacheControl$Builder found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.CertificatePinner found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.CertificatePinner$Builder found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.ConnectionPool found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.Cookie found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.Cookie$Builder found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.Dispatcher found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)
    Duplicate class okhttp3.FormBody found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)

2022-10-10 14:03 负责人:无 分享
已邀请:
莱克斯瑞

莱克斯瑞 (作者)

在windows的hbuilderx上提交打包一直报这个错误。 而在mac hbuilderx云打包安卓可以打包成功

BoredApe

BoredApe - 有问题就会有答案。

Duplicate class okhttp3.CacheControl found in modules jetified-mainlibrary-release-runtime (mainlibrary-release.aar) and jetified-okhttp-3.12 (com.squareup.okhttp3:okhttp:3.12.12)

集成的原生插件依赖库重复。请检查原生插件,如果是插件使用着请将问题反馈给插件开发者,如果是插件开发者本人请在原生开发群中反馈问题

  • 莱克斯瑞 (作者)

    刚刚测试了 云打包可以打成功,打自定义调试基座报这个错误。

    2022-10-10 15:17

  • 莱克斯瑞 (作者)

    云打包可以打正式包可以成功

    2022-10-10 15:18

该问题目前已经被锁定, 无法添加新回复