路人哎呀呀
路人哎呀呀
  • 发布:2022-11-17 13:08
  • 更新:2022-11-17 13:56
  • 阅读:246

[打包问题] 今天用百度语音插件打包失败

分类:HBuilderX

昨天还可以打包成功,今天2个语音拆机都不能成功了

都是报重复的类? 怎么破? 是我的配置问题吗

1: Task 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.baidu.speech.EventListener found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManager found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local$1 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local$2 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local$2$1 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local$2$1$1 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local$2$1$2 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.EventManagerFactory$EventManagerRemote2Local$2$1$3 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.MicrophoneInputStream found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.MicrophoneInputStream$1 found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)
    Duplicate class com.baidu.speech.MicrophoneInputStream$2 found in modules jetified-bd-release-runtime (bd-release.aar)

2022-11-17 13:08 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

Duplicate class com.baidu.speech.EventListener found in modules jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)

错误日志中提示jetified-bd-release-runtime (bd-release.aar) and jetified-speech_baidu-release-runtime (speech_baidu-release.aar)这两个依赖库冲突。
应该是你使用了多个原生插件依赖库冲突了,请先去掉部分插件库确定是哪个插件库引起的,确定后联系插件开发者升级依赖库,通用原则是使用相同插件库都更新到最新版本。

要回复问题请先登录注册