草庐IT

java - 依赖 org.json :json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android

coder 2023-11-22 原文

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

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

我该如何解决这个错误?

谢谢。

最佳答案

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

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

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

这个对我有用。

关于java - 依赖 org.json :json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32921328/

有关java - 依赖 org.json :json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android的更多相关文章

随机推荐