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

阅读 29

2022-07-12

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)

0 0 举报