依赖 org.json:json:20090211 被调试忽略,因为它可能与 Android 提供的内部版本冲突 [英] Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android

查看:39
本文介绍了依赖 org.json:json:20090211 被调试忽略,因为它可能与 Android 提供的内部版本冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 android studio 时,出现以下警告:

While I am running android studio, the warning below appears:

依赖 org.json:json:20090211 在调试时被忽略,因为它可能与 Android 提供的内部版本冲突.如有问题,请重新打包jarjar以更改类包

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

我该如何解决这个错误?

How can I resolve this error?

谢谢.

推荐答案

CommonsWare 答案是正确的.依赖 org.json:json:20090211 在调试时被忽略,因为它可能与 Android 提供的内部版本冲突.

CommonsWare answer is correct. Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android.

如果您使用的是 gradle 依赖项,请尝试从包中排除 org.json.

If you are using gradle dependency try excluding org.json from the package.

compile ('com.your.dependency.name:0.0.0'){
  exclude group: 'org.json', module: 'json'
}

这个对我有用.

这篇关于依赖 org.json:json:20090211 被调试忽略,因为它可能与 Android 提供的内部版本冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆