Android的SDK工具版本12有问题,使用ProGuard =>错误转换的Dalvik格式失败,错误1 [英] Android SDK tools revision 12 has problem with Proguard => error conversion to Dalvik format failed with error 1

查看:149
本文介绍了Android的SDK工具版本12有问题,使用ProGuard =>错误转换的Dalvik格式失败,错误1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到Android SDK工具修订12,马上我的应用程序不能用previous Proguard的设置导出。我收到的转换为的Dalvik格式失败,错误1,我使用的唯一库JCIFS。我试图清理和重建,创建一个新的项目,并重新组装,我相信我已经做了几乎所有的东西,我可以在网上阅读。 这是从这个新的SDK的错误?我建议不要暂且如果你的项目中使用Proguard的更新。

I have just updated to Android SDK tools revision 12, immediately my application can't be exported with previous Proguard setting. I received the "Conversion to Dalvik format failed with error 1", the only library I use is "jcifs". I have tried cleaning and rebuilding, create a new project, and reassembling and I believe I have done almost anything I can read in the Internet. Is this a new bug from this new SDK? I suggest don't update for the time being if your project use Proguard.

更新1: 我也试着导出一个简单的Hello应用程序使用ProGuard设置,还是一样的消息。它看起来像是与此版本的SDK工具坏了。

UPDATE 1: I also tried to export a simple Hello application with proguard set, still the same message. It looks like something is broken with this version of SDK tool.

更新2: 我不得不删除SDK目录整个工具文件夹,复制的SDK工具修订11备份到它。至少我可以回去工作,并出口使用ProGuard再次工作。我希望在相同的情况下这些信息可以帮助谁。我仍然不知道是什么但是怎么回事,希望有人能阐明这恼人的问题,一盏灯。

UPDATE 2: I have to delete the whole tools folder in SDK directory and copy a backup of SDK tools revision 11 into it. At least I can go back to work and export with proguard works again. I hope this information helps whoever in the same situation. I still have no idea what is going on though, hope someone can shed a light on this annoying issue.

更新3: 我报告这个问题,如下的错误: <一href="http://$c$c.google.com/p/android/issues/detail?id=18359">http://$c$c.google.com/p/android/issues/detail?id=18359 希望有人需要一个良好的看问题,到那时你将被告知留出的这个版本,如果你在你的开发使用Proguard的。

UPDATE 3: I have reported this issue as a bug here: http://code.google.com/p/android/issues/detail?id=18359 hope someone takes a good look at the issue, until then you will be advised to stay out of this version if you are using Proguard in your development.

推荐答案

该问题是由在R12 ProGuard的命令行的文件[Android的SDK安装目录] \工具\ ProGuard的\ BIN \ proguard.bat。只需编辑下面的行会解决这个问题。

The problem is caused by ProGuard command line in R12 in the file [Android SDK Installation Directory]\tools\proguard\bin\proguard.bat. Simply edit the following line will solve the problem.

修改

call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*

call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9

这篇关于Android的SDK工具版本12有问题,使用ProGuard =&GT;错误转换的Dalvik格式失败,错误1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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