0
点赞
收藏
分享

微信扫一扫

012 found '\r' @ line 30, column 50. 'com.google.code.gson:gson:2.7

大柚子top 2022-07-12 阅读 29

012 found '\r' @ line 30, column 50. 'com.google.code.gson:gson:2.7

这个报错中指出是哪个库冲突,但是该库也是必要的,不能删除。在实际测试中发现具体出现冲突的库如下

implementation 'com.squareup.retrofit2:converter-gson:2.1.0'

以及lib包下的。去掉其一就可以运行成功。

但是因为需求都不能移除,最终处理结果如下:

implementation 'com.squareup.retrofit2:converter-gson:2.1.0'

改为

compile ('com.squareup.retrofit2:converter-gson:2.1.0'){
exclude group : 'com.google.code.gson'
}

问题解决



举报

相关推荐

0 条评论