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

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

https://blog.csdn.net/weixin_40797306/article/details/105945504

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

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'
}

问题解决

原文地址:https://www.cnblogs.com/xlfcjx/p/14383095.html