带有[java/lang/String]的Proguard警告

带有[java/lang/String]的Proguard警告,java,android,proguard,Java,Android,Proguard,我面临着proguard的问题。我在proguard中有一些规则,其中之一是: -keep class org.jmrtd.** { *; } -dontwarn org.jmrtd.** 但我在建筑时收到了这个警告 Unexpected error while performing partial evaluation: Class = [org/jmrtd/MRTDFileSystem] Method = [readBinary(II)[B] Except

我面临着proguard的问题。我在proguard中有一些规则,其中之一是:

-keep class org.jmrtd.** { *; }
-dontwarn org.jmrtd.**
但我在建筑时收到了这个警告

Unexpected error while performing partial evaluation:
  Class       = [org/jmrtd/MRTDFileSystem]
  Method      = [readBinary(II)[B]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [java/lang/String] (with 2 known super classes) and [org/jmrtd/MRTDFileSystem$MRTDFileInfo] (with 1 known super classes))
Unexpected error while preverifying:
  Class       = [org/jmrtd/MRTDFileSystem]
  Method      = [readBinary(II)[B]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [java/lang/String] (with 2 known super classes) and [org/jmrtd/MRTDFileSystem$MRTDFileInfo] (with 1 known super classes))
有人能帮我吗?
谢谢。

看起来库jar有问题。您确定所有库都已正确配置吗
MRTDFileInfo
MRTDFileSystem
的内部类,可以在内部引用

处理步骤如下:

输入Jar-->Strink-->优化-->模糊-->预先验证-->输出Jar

根据错误跟踪,您在预验证步骤中收到错误:预验证时出现意外错误

如果要跳过此erorr,只需使用prevent Proguard预先验证:

-dontpreverify
它将跳过预验证,但我怀疑jar是否能正常运行

我建议您正确提供您的库jar,以便proguard可以引用它们

除了-dontwarn之外,还可以使用-ignorewarnings


希望这对调试问题有帮助。

看起来库jar有问题。您确定所有库都已正确配置吗
MRTDFileInfo
MRTDFileSystem
的内部类,可以在内部引用

处理步骤如下:

输入Jar-->Strink-->优化-->模糊-->预先验证-->输出Jar

根据错误跟踪,您在预验证步骤中收到错误:预验证时出现意外错误

如果要跳过此erorr,只需使用prevent Proguard预先验证:

-dontpreverify
它将跳过预验证,但我怀疑jar是否能正常运行

我建议您正确提供您的库jar,以便proguard可以引用它们

除了-dontwarn之外,还可以使用-ignorewarnings


希望这对调试问题有所帮助。

您是否在任何时候将
MRTDFileInfo
的返回值转换为
字符串
?(基本上是:给我看你的代码)。好吧,我在项目中找不到这个类的任何用法:/n你是否将
MRTDFileInfo
的返回值转换为
字符串,或者在任何时候将其转换为
字符串?(基本上是:给我看看你的代码)。好吧,我在project中找不到这个类的任何用法:/Thank you,option-dontpreverify works。我还检查了MRTDFileInfo,它是MRTDFileSystem的一个内部类。但你们的怀疑是有道理的,应用程序运行不正常,但谢谢:)很高兴知道当前的问题已经解决,我建议不要混淆库jar,这可能会解决问题谢谢你们,选项-dontpreverify有效。我还检查了MRTDFileInfo,它是MRTDFileSystem的一个内部类。但你们的怀疑是有道理的,应用程序运行不正常,但谢谢:)很高兴知道当前的问题已经解决了,我建议不要混淆库jar,这可能会解决问题