代码之家  ›  专栏  ›  技术社区  ›  ostrakon

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

  •  2
  • ostrakon  · 技术社区  · 8 年前

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

    ...
    :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)
    

    1 回复  |  直到 8 年前
        1
  •  1
  •   ostrakon    8 年前

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

    这为我提供了一个很好的图形视图,显示了我拥有的大量冗余导入。