不同的SDK之间引用了同一个jar包出现的警告

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_32107121/article/details/70308075

Warning:WARNING: Dependency org.json:json:20090211 is ignored for release as it may be conflicting with the internal version provided by Android.In case of problem, please repackage it with jar to change the class packages

出现这个警告是不影响使用的。主要是因为不同的SDK之间引用了同一个jar包,如果想去除这个警告,可以在gradle中添加一句:configurations{compile.exclude group:"org.json",module:"json"}。或者手动把不同SDK中的重复的jar包去除。

例如将build.gradle中的

改为

就解决了。

猜你喜欢

转载自blog.csdn.net/qq_32107121/article/details/70308075