首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >android集成即时通信im和实时音视频,打包时出错?

android集成即时通信im和实时音视频,打包时出错?

提问于 2023-05-13 10:21:33
回答 1关注 0查看 220

1:问题描述

我首先集成了即时通信im,再集成实时音视频,在手机上运行正常,功能都能使用,但打包时出现如下提示:

代码语言:js
复制
Execution failed for task ':app:mergeDexRelease'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
   > There was a failure while executing work items
      > A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
         > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
           Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
           Type com.tencent.qcloud.tuicore.BuildConfig is defined multiple times: D:\work\androidCode\android-freeper-socialize\TUIKit\TUICore\tuicore\build\.transforms\a26965b4a56315b113eb12c8e3093d1f\transformed\release\com\tencent\qcloud\tuicore\BuildConfig.dex, D:\work\androidCode\android-freeper-socialize\app\build\intermediates\external_libs_dex\release\mergeExtDexRelease\classes.dex

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

通过网上搜索,说该错误是com.tencent.qcloud.tuicore下清单文件的包名重复

代码语言:js
复制
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.tencent.qcloud.tuicore">

我全局搜索后,确定com.tencent.qcloud.tuicore包名是唯一的,没有重复,所以请教一下,这个问题该如何解决?

另外我在我的app下,build.gradle引入如下:

代码语言:js
复制
api project(':tuiconversation')
api project(':tuichat') 
api project(':tuiliveroom')//如果不引入该模块,能正常打包。

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档