启用Proguard的应用程序崩溃 [英] App Crashing With Proguard Enabled

查看:152
本文介绍了启用Proguard的应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用运行完美无需启用proguard,但当我启用它时,应用程序马上就会崩溃。我已经在配置中尝试了许多组合,无法使用。

My app runs perfectly without proguard enabled but when I enable it the app crashes right away. I have tried many combinations in the configuration to no avail.

有没有什么我应该保持的,我失踪了?

Is there something that I should be keeping that I'm missing?

proguard config: https://gist.github.com/hanleyhansen/99fc07807950bae8e4f5

proguard config: https://gist.github.com/hanleyhansen/99fc07807950bae8e4f5

无模糊日志: https:// gist。 github.com/hanleyhansen/6cba7fc941a79d85802f

onSuccess(): https://gist.github.com/hanleyhansen/e7a4916c42d3ca065c99

onSuccess(): https://gist.github.com/hanleyhansen/e7a4916c42d3ca065c99

推荐答案

我发现违规代码我更改了Proguard.cfg以匹配以下内容:

I found the offending code. I changed my Proguard.cfg to match the following:

https://code.google.com/p/google-gson/source/browse/trunk/examples/android-proguard-example/ proguard.cfg?r = 878

现在一切正常!

这篇关于启用Proguard的应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆