android 项目 升级到最新gradle 3.5版本后打包报错 r8.CompilationFailedException
问题描述
android 项目 ,把android studio 和gradle版本升级到 3.5版本后打包报错。com.android.tools.r8.CompilationFailedException
项目可以正常编译,也可打debug包
问题出现的环境背景及自己尝试过哪些方法
自己按照网上的一些方法都未能解决
https://blog.csdn.net/weixin_...
https://www.jianshu.com/p/653...
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
Error: offset: 0, line: 239290, column: 1, 'void rx.observers.TestSubscriber.assertValue(java.lang.Object)' cannot be mapped to 'a' because it is in conflict with an existing member with the same signature. This usually happens when compiling a test application against a source application and having short generic names in the test application. Try giving 'a' a more specific name or add a keep rule to keep 'void rx.observers.TestSubscriber.assertValue(java.lang.Object)'.
回答:
关闭 R8Tool 暂时解决了
以上是 android 项目 升级到最新gradle 3.5版本后打包报错 r8.CompilationFailedException 的全部内容, 来源链接: utcz.com/p/176573.html