问题描述
我要发布一个应用程序,但是,当我使用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)
是啊,这是正确的,但我也做了一些我不知道的:)
我的解决办法是:
- 在我升级到最新的Android SDK。
- 在我改变的Eclipse SDK下path属性:窗口> preferences>安卓> SDK位置的东西如C:\ PROGRA〜1 \ Android的SDK。该PROGRA〜1,可用于编写程序文件不用其他的空间。您可以在命令提示符下使用在Windows
DIR / X
命令来获取路径的任何空间的版本。 - 在我搬到我的Eclipse工作区到一个位置,而不如D位:\
- 的变化上面并不足以解决这个问题。我得到了转换到的Dalvik格式失败,出现错误1错误对话框不用其他的输出控制台任何解释。后来我发现that主题并做了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:
- I updated to latest Android SDK.
- 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. - I moved my Eclipse Workspace to a location without spaces like D:\
- 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!