【发布时间】:2013-09-20 22:05:48
【问题描述】:
我最近将一个项目从 eclipse/ant 转换为使用 Android Studio/Gradle。我的调试版本工作正常,但是当我尝试在启用 proguard 的情况下进行发布版本时,它失败并出现以下错误
16:26:13.437 [ERROR] [system.err] Unexpected error while computing stack sizes:
16:26:13.438 [ERROR] [system.err] Class = [com/a/a/a/d/d]
16:26:13.438 [ERROR] [system.err] Method = [<clinit>()V]
16:26:13.438 [ERROR] [system.err] Exception = [java.lang.IllegalArgumentException] (Stack size becomes negative after instruction [143] swap in [com/a/a/a/d/d.<clinit>()V])
我在我的 Eclipse 项目中使用了相同的 proguard.txt,它运行良好,因此表明 Gradle Android 插件存在某种问题。有没有人遇到过类似的问题?我的 proguard 配置 - http://pastebin.com/2gsNUmeD 和完整的 gradle 输出 http://pastebin.com/TAvMUSrR
【问题讨论】: