Android 上带有默认 proguard.cfg 的 Proguard ParseException
我即将发布一个应用程序,但是当我在 Eclipse 中使用 Android SDK 的导出工具构建它时,出现以下错误。
- 我没有更改 proguard.cfg。
- 它位于我的项目的根文件夹中。
- 我只将
proguard.config=proguard.cfg
添加到 default.properties。
我阅读了论坛并更新了proguard(只是将文件复制到Android SDK的tools文件夹中),但仍然无法工作。我无法弄清楚“Projects\Eclipse”的问题是什么??
如果你帮助我,我会很高兴...
[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)
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,没错,但我也做了一些我不知道的事情:)
我的解决方案是:
DIR /X
命令来获取无空间版本的路径。然后它就起作用了;)
我使用的是 Windows 7 Ultimate x86。我希望它也对其他人有用。
阿尔达。
Yeah that is right, but also I did something that I didn't know :)
My solution was:
DIR /X
command in command prompt on Windows to get no space versions of Paths.Then it worked ;)
I am using Windows 7 Ultimate x86. I hope it works for others too.
Arda.
您的项目路径可能包含空格。此问题应该在最新版本的 Android SDK 中修复(至少对于 Ant 构建)。否则,您应该暂时使用不带空格的路径。
Your project path probably contains a space. This should be fixed in the latest version of the Android SDK (at least for the Ant build). Otherwise, you should use a path without spaces for the time being.