json defines classes that conflict with classes now provided by Android解决办法:

Error:Error: json defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]

解决办法:

1.替换第三方包为最新的

2.加入如下:

configurations {
    all {
        exclude group: 'org.json', module: 'json'
    }
}

猜你喜欢

转载自blog.csdn.net/leansmall/article/details/80660350