陈冠希
陈冠希
  • 发布:2022-03-29 14:29
  • 更新:2022-09-16 12:16
  • 阅读:514

安卓打包失败了...

分类:HBuilderX

Appid: UNI261C11E

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 jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.ExclusionStrategy found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldAttributes found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingPolicy found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$1 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$2 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$3 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$4 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingPolicy$5 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.FieldNamingStrategy found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$1 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$2 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$3 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$4 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$5 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$6 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.Gson$FutureTypeAdapter found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.GsonBuilder found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.InstanceCreator found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonArray found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonDeserializationContext found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonDeserializer found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonElement found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonIOException found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonNull found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonObject found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonParseException found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonParser found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonPrimitive found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonSerializationContext found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonSerializer found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonStreamParser found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.JsonSyntaxException found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.LongSerializationPolicy found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.LongSerializationPolicy$1 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.LongSerializationPolicy$2 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.TypeAdapter found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.TypeAdapter$1 found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.TypeAdapterFactory found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.annotations.Expose found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.annotations.JsonAdapter found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.annotations.SerializedName found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    Duplicate class com.google.gson.annotations.Since found in modules jetified-gson-2.6.2 (com.google.code.gson:gson:2.6.2) and jetified-gson-2.8.0 (gson-2.8.0.jar)
    ...

2022-03-29 14:29 负责人:无 分享
已邀请:
DCloud_Android_ST

DCloud_Android_ST

unipush与你集成的某个原生插件有依赖库冲突 需要找下插件开发者 将gson改为云端仓储地址集成

1***@qq.com

1***@qq.com

我也也出现了问题,有解决办法吗

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