gpt4 book ai didi

android - Proguard 关于重复类定义的警告,但不会打印出重复类

转载 作者:行者123 更新时间:2023-11-29 01:06:00 24 4
gpt4 key购买 nike

我正在尝试更改我的应用程序中库的版本,但我认为我正在与我正在使用的另一个库试图使用的某些依赖项的另一个版本发生某种冲突。它警告我有关重复的类定义,但随后仅打印出下一个警告类别的特定示例(在本例中为未解析的类定义)。

...
:RedactedApp:proguardDebug
Note: there were 644 duplicate class definitions (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning: redacted.package.ClassName: can't find superclass or interface other.redacted.package.ClassName2
...
...
Warning: there were 12 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 5 unresolved references to library class members.
You probably need to update the library versions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)

有没有办法强制混淆器实际打印出检测到的重复类的名称?我的 proguard 文件中已经启用了 -verbose。

最佳答案

虽然我找不到让 proguard 实际打印出重复类的方法,但我能够通过 gradle (2.9) 命令更好地了解依赖关系:

gradle -q dependencies :RedactedAppName:dependencies --configuration compile

这为我提供了很多冗余导入的良好图形 View 。

关于android - Proguard 关于重复类定义的警告,但不会打印出重复类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47162060/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com