Type com.google.android.exoplayer2.R$attr is defined multiple times:

Android studio 项目debug运行没问题,但是打包时报错:

Type com.google.android.exoplayer2.R$attr is defined multiple times:

 这是Android移动直播SDK与exoplayer冲突导致的

我使用的版本是

api ('com.tencent.liteavsdk:LiteAVSDK_Smart:6.8.8003')

更新到最新的版本吧,冲突就解决了。。。。。

dependencies {
    implementation 'com.tencent.liteav:LiteAVSDK_Professional:latest.release'
}

也可以解压,自己处理,参考如下Android移动直播SDK与exoplayer冲突如何解决呢? - 问答 - 腾讯云开发者社区-腾讯云

猜你喜欢

转载自blog.csdn.net/BigBingtang/article/details/127032876