Android-android 升级4.0,打混淆包时总是出错!!怎么办?

Android-android 升级4.0,打混淆包时总是出错!!怎么办?

想挽留 发布于 2017-01-10 字数 4326 浏览 1340 回复 3

升级了android 4.0, 然后打包就再也打不出来了。 网上各种方法试了很多。。 还是搞不定! 请大家帮忙看一下:

[2012-05-02 15:43:02 - TText] Proguard returned with error code 1. See console
[2012-05-02 15:43:02 - TText] You should check if you need to specify additional program jars.
[2012-05-02 15:43:02 - TText] Unexpected error while evaluating instruction:
[2012-05-02 15:43:02 - TText] Class = [com/mumayi/market/adapter/ExchangePrizeAdapter$2]
[2012-05-02 15:43:02 - TText] Method = [onClick(Landroid/view/View;)V]
[2012-05-02 15:43:02 - TText] Instruction = [93] iload v4
[2012-05-02 15:43:02 - TText] Exception = [java.lang.NullPointerException] (null)
[2012-05-02 15:43:02 - TText] Unexpected error while performing partial evaluation:
[2012-05-02 15:43:02 - TText] Class = [com/mumayi/market/adapter/ExchangePrizeAdapter$2]
[2012-05-02 15:43:02 - TText] Method = [onClick(Landroid/view/View;)V]
[2012-05-02 15:43:02 - TText] Exception = [java.lang.NullPointerException] (null)
[2012-05-02 15:43:02 - TText] java.lang.NullPointerException
[2012-05-02 15:43:02 - TText] at proguard.evaluation.Variables.iload(Variables.java:228)
[2012-05-02 15:43:02 - TText] at proguard.evaluation.Processor.visitVariableInstruction(Processor.java:645)
[2012-05-02 15:43:02 - TText] at proguard.classfile.instruction.VariableInstruction.accept(VariableInstruction.java:306)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.evaluateSingleInstructionBlock(PartialEvaluator.java:729)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlock(PartialEvaluator.java:575)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.visitExceptionInfo(PartialEvaluator.java:1063)
[2012-05-02 15:43:02 - TText] at proguard.classfile.visitor.ExceptionHandlerFilter.visitExceptionInfo(ExceptionHandlerFilter.java:67)
[2012-05-02 15:43:02 - TText] at proguard.classfile.attribute.CodeAttribute.exceptionsAccept(CodeAttribute.java:186)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.evaluateExceptionHandlers(PartialEvaluator.java:1003)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlockAndExceptionHandlers(PartialEvaluator.java:540)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute0(PartialEvaluator.java:221)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute(PartialEvaluator.java:180)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.LivenessAnalyzer.visitCodeAttribute(LivenessAnalyzer.java:195)
[2012-05-02 15:43:02 - TText] at proguard.optimize.evaluation.VariableOptimizer.visitCodeAttribute(VariableOptimizer.java:102)
[2012-05-02 15:43:02 - TText] at proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)
[2012-05-02 15:43:02 - TText] at proguard.classfile.ProgramMethod.attributesAccept(ProgramMethod.java:79)
[2012-05-02 15:43:02 - TText] at proguard.classfile.attribute.visitor.AllAttributeVisitor.visitProgramMember(AllAttributeVisitor.java:95)
[2012-05-02 15:43:02 - TText] at proguard.classfile.util.SimplifiedVisitor.visitProgramMethod(SimplifiedVisitor.java:91)
[2012-05-02 15:43:02 - TText] at proguard.classfile.ProgramMethod.accept(ProgramMethod.java:71)
[2012-05-02 15:43:02 - TText] at proguard.classfile.ProgramClass.methodsAccept(ProgramClass.java:439)
[2012-05-02 15:43:02 - TText] at proguard.classfile.visitor.AllMethodVisitor.visitProgramClass(AllMethodVisitor.java:47)
[2012-05-02 15:43:02 - TText] at proguard.classfile.ProgramClass.accept(ProgramClass.java:281)
[2012-05-02 15:43:02 - TText] at proguard.classfile.ClassPool.classesAccept(ClassPool.java:114)
[2012-05-02 15:43:02 - TText] at proguard.optimize.Optimizer.execute(Optimizer.java:764)
[2012-05-02 15:43:02 - TText] at proguard.ProGuard.optimize(ProGuard.java:325)
[2012-05-02 15:43:02 - TText] at proguard.ProGuard.execute(ProGuard.java:114)
[2012-05-02 15:43:02 - TText] at proguard.ProGuard.main(ProGuard.java:499)

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

清晨说ぺ晚安 2017-10-04 3 楼

是不是用到一些第三方的jar包,在配置文件中忽略试下。

[2012-05-02 15:43:02 - TText] Proguard returned with error code 1. See console

console有什么提示吗?

泛泛之交 2017-09-13 2 楼

假如是用eclipse+ADT打包的话,请检查下ADT的版本是否是17.0.0?

ADT17.0.0的版本有严重的打包问题,
ADT18.0.0的版本已经解决了这个问题(具体请看):
Fixed problem where exporting release package does not recompile libraries in release mode

晚风撩人 2017-02-02 1 楼

你是不是导入了一些第三方的包,把那些包过滤掉试试