我试图在我的应用中更改库的版本,但我认为我与某个依赖项的另一个版本发生某种冲突,而我正在使用的另一个库正在尝试使用。它警告我有关重复的类定义,但后来只打印出下一个警告类别的特定示例(在这种情况下是未解析的类定义)。
...
: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实际打印出检测到的重复类的名称?我已经在我的proguard文件中启用了-verbose。
答案 0 :(得分:1)
虽然我无法找到实现打印出重复类的程序的方法,但我能够通过gradle(2.9)命令获得良好的依赖关系视图:
<blogname>.tumblr.com/rss
这给了我很好的图形化视图,了解了我的大量冗余导入。