Android项目的ProGuard模糊处理后未能出口的apk [英] Android project failed to export apk after proguard obfuscate

查看:144
本文介绍了Android项目的ProGuard模糊处理后未能出口的apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Android SDK工具R15和ADT 15使用Eclipse。但我通过卡转换为Dalvik的格式失败,错误1项目与ProGuard的出口apk文件时(它使用ProGuard关成功地运行)。

Using Android SDK Tools R15 and ADT 15 with Eclipse. But I'm stuck by Conversion to Dalvik format failed with error 1 when export the project to apk file with proguard on(It runs sucessfully with proguard off).

而且我发现<一个href=\"http://bimbim.in/post/2010/09/24/Reason-of-Conversion-to-dalvik-format-failed-with-error-1.aspx\"相对=nofollow>这个网站。

然后我清理和重建我的项目,但它没有任何意义。而且我也试图创造与我的项目的所有引用罐子一个新的Andr​​oid项目,然后使用相同的proguard.cfg混淆了code和出口。但是,一切都运作良好的测试项目。

Then I clean and rebuild my project but it makes no sense. And I have also tried to create a new Android project with all referenced jars of my project and then use the same proguard.cfg to obfuscate the code and export. But everything works well in the test project.

有没有任何错误的详细信息打印的Eclipse的终端上,所以我不能决定的问题。

There isn't any error details printed on the terminal of Eclipse so I can't decide the problem.

-keepattributes LocalVariableTable 使得proguard的产生畸形code。

It is -keepattributes LocalVariableTable makes proguard produce malformed code.

推荐答案

在这个问题已经被问了几次:

This question has been asked several times before:

  • Conversion to Dalvik format failed with error 1 Solution?
  • Eclipse gives "Conversion to Dalvik format failed" while ant works
  • Android SDK tools revision 12 has problem with Proguard
  • "Conversion to Dalvik format failed with error 1" on external Jar

机会是,如果你更新了Android SDK旧版本proguard.jar与从官方的 ProGuard的网站在SourceForge。

Chances are the problem will go away if you update the old version of proguard.jar in the Android SDK with the latest version (4.6 or 4.7) from the official ProGuard site at Sourceforge.

这篇关于Android项目的ProGuard模糊处理后未能出口的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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