微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Checkmarx 找到了 android 项目中没有的库

如何解决Checkmarx 找到了 android 项目中没有的库

Checkmarx OSA 发现: com.fasterxml.jackson.core:jackson-databind 您的版本已过时 但是,当我扫描依赖项时,我找不到,因为我们在项目中有任何 jackson 库。 你知道可能是什么问题吗?

解决方法

这可能是由于包含此过时版本的库所致。要查看依赖项的完整列表,请运行 ./gradlew app:dependencies,它将返回类似于:

| +--- androidx.preference:preference:1.1.0
| | +--- androidx.appcompat:appcompat:1.1.0 (*)
| | +--- androidx.core:core:1.1.0 (*)
| | +--- androidx.fragment:fragment:1.1.0 (*)
| | +--- androidx.recyclerview:recyclerview:1.0.0 (*)
| | +--- androidx.annotation:annotation:1.1.0
| | \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
| +--- androidx.lifecycle:lifecycle-extensions:2.1.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.1.0 (*)
| | +--- androidx.arch.core:core-common:2.1.0 (*)
| | +--- androidx.arch.core:core-runtime:2.1.0 (*)
| | +--- androidx.fragment:fragment:1.0.0 -> 1.1.0 (*)

然后您可以查看哪个库使用的是过时版本的 jackson-databind。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。