解决方法是:(出现上述的问题的原因是因为引用的jar包重复了)
在Android Studio项目中的app下的build.gradle中添加如下参数就可以解决:
// 解决包冲突(Json) packagingOptions { exclude 'META-INF/ASL2.0' exclude 'META-INF/DEPENDENCIES.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/notice.txt' exclude 'META-INF/license.txt' exclude 'META-INF/dependencies.txt' exclude 'META-INF/LGPL2.1' }