w***@hx008.com
w***@hx008.com
  • 发布:2022-03-29 19:08
  • 更新:2022-10-07 18:52
  • 阅读:670

打包出错Execution failed for task ':app:checkReleaseDuplicateClasses'.求解决一下。

分类:uni-app

hbuilder x版本号: 3.3.13.20220314
之前一直没错,现在打包就报下面的错,不知如何解决,有哪位指导下。

完整出错日志 : https://ide.dcloud.net.cn/build/errorLog/f0f8e1b0-af4f-11ec-b540-f3b0127d2f34

Appid: UNIEF7E500

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.google.gson.DefaultDateTypeAdapter found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.ExclusionStrategy found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldAttributes found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingPolicy found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$1 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$2 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$3 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$4 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$5 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.FieldNamingStrategy found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson$1 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson$2 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson$3 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson$4 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson$5 found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.Gson$FutureTypeAdapter found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.GsonBuilder found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.InstanceCreator found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.6.2.jar)
    Duplicate class com.google.gson.JsonArray found in modules gson-2.8.2 (com.google.code.gson:gson:2.8.2) and jetified-gson-2.6.2 (gson-2.

2022-03-29 19:08 负责人:无 分享
已邀请:
1***@189.cn

1***@189.cn - haokfw

请问解决了吗? 我们也刚遇到

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