解决Android打包使用Progurad出现Can't process class...异常

  第一次写博客,呵呵……

  为什么会写这篇文章 是因为记录下问题,花了一天的时间来解决,有点坑

  出现这个问题后,网上搜了很多资料,不是没答案就是没有用处。最后找到了这个网址:http://sourceforge.net/p/proguard/bugs/420/?page=0,也就是proguard官网反馈bug的地方。从这得到一个教训,开源的东西出了问题的话,一定首先要去官网上去看看问题反馈。

  解决方法就是根据Eric Lafortune的建议:

It appears two classes in the jar have corrupt StackMapTable attributes, which crashes the parsers in ProGuard and also in javap, e.g.:
javap -classpath libs/classes.jar com.unity3d.player.VideoPlayer
Is this the original library? The proper solution is to make sure the classes are fixed. They seem to be obfuscated, maybe with ProGuard even (?), but at least the latest version of ProGuard writes out class files that are not corrupt (unless it is misconfigured).

As a workaroun

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值