首页 > 解决方案 > Proguard:IllegalArgumentException - 不是整数值 [proguard.evaluation.value.TypedReferenceValue]

问题描述

请帮帮我!

我一直在尝试通过放置以下任何规则来克服这个问题并查看各种解决方案,但它仍然不起作用:

-优化!方法/删除/参数

-优化!类/拆箱/枚举

如果我提出以下规则,它会起作用,但我不完全理解它的功能,我怀疑它的用途:

-不要优化

这是我得到的错误

Unexpected error while evaluating instruction:
  Class       = [com/test/proyect/recognizers/documents/UsdlFrontDocument]
  Method      = [buildResponseData()Lcom/test/proyect/recognizers/ResponseData;]
  Instruction = [18] ificmpeq +5 (target=23)
  Exception   = [java.lang.IllegalArgumentException] (Value "com/microblink/entities/recognizers/Recognizer$Result$State?" is not an integer value [proguard.evaluation.value.TypedReferenceValue])
Unexpected error while performing partial evaluation:
  Class       = [com/test/proyect/recognizers/documents/UsdlFrontDocument]
  Method      = [buildResponseData()Lcom/test/proyect/recognizers/ResponseData;]

  Exception   = [java.lang.IllegalArgumentException] (Value "com/microblink/entities/recognizers/Recognizer$Result$State?" is not an integer value [proguard.evaluation.value.TypedReferenceValue])

标签: javaandroidandroid-studioproguardrules

解决方案


推荐阅读