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)'.

阅读 7.7k
1 个回答
新手上路,请多包涵

关闭 R8Tool 暂时解决了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题