Byte Buddy 1.11.1 有问题 Android

Byte Buddy 1.11.1 has problem with Android

我在 Android 中使用 Byte Buddy,我从版本 1.10.17 切换到 1.11.1,但我注意到新版本有问题并给我错误:

Caused by: java.lang.IllegalStateException: Failed to resolve the class file version of the current VM: This JVM's version string does not seem to be valid: 0
    at net.bytebuddy.ClassFileVersion$VersionLocator$Unresolved.resolve(ClassFileVersion.java:558)
    at net.bytebuddy.ClassFileVersion.ofThisVm(ClassFileVersion.java:276)
    at net.bytebuddy.description.method.ParameterList$ForLoadedExecutable.of(ParameterList.java:205)
    at net.bytebuddy.description.method.MethodDescription$ForLoadedMethod.getParameters(MethodDescription.java:1179)
    at net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.compile(TargetMethodAnnotationDrivenBinder.java:82)
    at net.bytebuddy.implementation.MethodDelegation$ImplementationDelegate$ForStaticMethod.of(MethodDelegation.java:948)
    at net.bytebuddy.implementation.MethodDelegation$WithCustomProperties.to(MethodDelegation.java:1512)
    at net.bytebuddy.implementation.MethodDelegation$WithCustomProperties.to(MethodDelegation.java:1493)
    at net.bytebuddy.implementation.MethodDelegation.to(MethodDelegation.java:271)
... 34 more

知道这是为什么吗?我该怎么办?

该问题已在字节好友的master分支上修复,将在1.11.2版本中解决。问题确实是 Android 发布的版本号 0 未正确处理。