【发布时间】:2021-01-14 12:09:53
【问题描述】:
在向我的应用程序添加包含一些我需要的功能的 jar 文件后,我的 proguard 构建没有工作。运行我的 proguard 构建后收到的错误消息是:
Warning: Exception while processing task java.io.IOException: java.lang.RuntimeException: Unexpected error while writing class [proguard/optimize/gson/_OptimizedTypeAdapterFactory] (Overflow of unsigned short value [93362])
Thread(Tasks limiter_1): destruction
有什么方法可以排除这个 jar 文件被 ProGuard 检查?我正在使用 ProGuard v6.2.2。我怀疑问题是 GSON,因为在此错误之前我遇到了问题。
我也在这里检查和研究了答案,例如Proguard [ java.lang.IllegalArgumentException: Overflow of unsigned short value ]
Android crash while using GSON Library and ProGuard
#732 Exception while handling very long string argument
任何帮助将不胜感激。
【问题讨论】: