Proguard的ParseException的对Android的默认proguard.cfg [英] Proguard ParseException with Default proguard.cfg on Android

查看:207
本文介绍了Proguard的ParseException的对Android的默认proguard.cfg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要发布一个应用程序,但是,当我使用Android SDK中的导出工具在Eclipse构建它,我得到下面的错误。

  • 在我没有改变proguard.cfg。
  • 这是我的项目的根文件夹。
  • 我只添加 proguard.config = proguard.cfg 来default.properties。

我读了论坛和更新的ProGuard(只需将文件复制到Android SDK的工具文件夹中),但我仍然无法正常工作。我无法弄清楚的问题是与项目\ Eclipse的??

什么

如果你帮我,我会很高兴...

  [2011-08-08二时32分46秒 -  CoolProject] Proguard的返回错误code 1.见控制台
[2011-08-08 2点32分46秒 -  CoolProject] proguard.ParseException:未知选项项目\ Eclipse的说法中9号
[2011-08-08 2点32分46秒 -  CoolProject]在proguard.ConfigurationParser.parse(ConfigurationParser.java:172)
[2011-08-08 2点32分46秒 -  CoolProject]在proguard.ProGuard.main(ProGuard.java:484)
 

解决方案

是啊,这是正确的,但我也做了一些我不知道的:)

我的解决办法是:

  1. 在我升级到最新的Andr​​oid SDK。
  2. 在我改变的Eclipse SDK下path属性:窗口> preferences>安卓> SDK位置的东西如C:\ PROGRA〜1 \ Android的SDK。该PROGRA〜1,可用于编写程序文件不用其他的空间。您可以在命令提示符下使用在Windows DIR / X 命令来获取路径的任何空间的版本。
  3. 在我搬到我的Eclipse工作区到一个位置,而不如D位:\
  4. 的变化上面并不足以解决这个问题。我得到了转换到的Dalvik格式失败,出现错误1错误对话框不用其他的输出控制台任何解释。后来我发现<一href="http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar">that主题并做了<一href="http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar/7004730#7004730">that回复说。

然后它的工作;)

我使用Windows 7旗舰版86。我希望它适用于他人。 阿尔达。

I am about to release an application but, while i was building it using Export Tool of Android SDK in Eclipse, i get the error below.

  • I didn't change the proguard.cfg.
  • It is in the root folder of my project.
  • I only add proguard.config=proguard.cfg to default.properties.

I read the forum and update proguard (just copied the files to the tools folder of Android SDK), but still I doesn't work. I couldn't figure out what the problem is with the 'Projects\Eclipse' ??

If you help me, I will be so glad...

[2011-08-08 02:32:46 - CoolProject] Proguard returned with error code 1. See console
[2011-08-08 02:32:46 - CoolProject] proguard.ParseException: Unknown option 'Projects\Eclipse' in argument number 9
[2011-08-08 02:32:46 - CoolProject]     at proguard.ConfigurationParser.parse(ConfigurationParser.java:172)
[2011-08-08 02:32:46 - CoolProject]     at proguard.ProGuard.main(ProGuard.java:484)

解决方案

Yeah that is right, but also I did something that I didn't know :)

My solution was:

  1. I updated to latest Android SDK.
  2. I changed SDK path property under Eclipse: Window > Preferences > Android > SDK Location as something like c:\Progra~1\android-sdk. The Progra~1 can be used for writing Program Files witout spaces. You can use DIR /X command in command prompt on Windows to get no space versions of Paths.
  3. I moved my Eclipse Workspace to a location without spaces like D:\
  4. The changes above didn't enough to solve the problem. I got "Conversion to Dalvik format failed with error 1" error dialog witout any explanation on output console. Then I found that topic and did what that reply says.

Then it worked ;)

I am using Windows 7 Ultimate x86. I hope it works for others too. Arda.

这篇关于Proguard的ParseException的对Android的默认proguard.cfg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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