Proguard 解析异常错误
让 proguard 工作时遇到问题。
如果我尝试导出未签名的应用程序 输出控制台抛出以下错误 windows 使用 eclipse 和最新的 ADT 时。
Proguard returned with error code 1. See console
proguard.ParseException: Expecting class path separator ';' before 'C:\Users\wolf\workspace\Dcon\lib\joda-time-1.6.2.jar' in argument number 4
at proguard.ConfigurationParser.parseClassPathArgument(ConfigurationParser.java:295)
at proguard.ConfigurationParser.parse(ConfigurationParser.java:109)
at proguard.ProGuard.main(ProGuard.java:491)
我做了一些搜索,发现通常当文件路径中有空格时会出现此错误,但正如您所看到的,路径中没有空格。
有人有什么想法吗?
Having a problem getting proguard to work.
If I try to export an unsigned application
the output console throws the following error on
windows when using eclipse and the latest ADT.
Proguard returned with error code 1. See console
proguard.ParseException: Expecting class path separator ';' before 'C:\Users\wolf\workspace\Dcon\lib\joda-time-1.6.2.jar' in argument number 4
at proguard.ConfigurationParser.parseClassPathArgument(ConfigurationParser.java:295)
at proguard.ConfigurationParser.parse(ConfigurationParser.java:109)
at proguard.ProGuard.main(ProGuard.java:491)
I have done some searching and have found that normally this error comes up when you have a space in the file path, but as you can see their is no space in the path.
Anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就我而言,我还有其他解决方案。
Proguard官方说原因是你的库路径包含空格。
但我发现我的库路径包含“(”或“)”也会导致这个 dxxn 问题。
我正在使用 sdk r12 和 ProGuard 4.6。
希望有帮助。
In my case, I have other solve.
The Proguard official said that reason is your library path contain space.
But I found My library path contain "(" or ")" also cause this dxxn problem.
I am using sdk r12 and ProGuard 4.6.
Hope help.
好吧,我自己找到了答案。在这里为其他人更新。
似乎是 adk12 附带的 proguard 的问题。
链接有更多详细信息。
http://code.google.com/p/android/issues/detail ?id=18359
升级到proguard 4.6,突然开始工作了。
不要按照建议更改 bat 文件,这只会让事情变得更糟。
最后还手动更新了环境变量 PROGUARD。
所以不确定到底是什么解决了问题,但现在它可以工作了。
Okay found answer on my own. Updating here for others.
Seems it is a problem with the proguard that ships with the adk12.
Link has more details.
http://code.google.com/p/android/issues/detail?id=18359
Upgraded to proguard 4.6 and it suddenly started working.
Do NOT change the bat file as suggested that just confused things worse.
Also ended up updating the environment variable PROGUARD manually.
So not sure what exactly fixed the problem but it now works.