Eclipse 中的 Proguard,几乎在开始之前就失败了
这是一个真正的新手问题。我安装了 proguard,并尝试用它导出我的第一个应用程序。我在 Eclipse 控制台中收到以下错误(已替换真实路径)。
[2011-10-13 10:11:56 - RobotInvaders] Proguard 返回错误代码 1。请参阅控制台 [2011-10-13 10:11:56 - RobotInvaders] 无法访问 jar 文件“/[workspace path]/android-sdk-mac_x86/tools/proguard/lib/proguard.jar”
但我可以通过我的 xterm 访问它。工作空间路径中没有空格或奇怪的字符。我什至更改了权限,但没有效果。起初我以为可能缺少一些环境变量,但错误足以获取整个正确的路径。大约 30 - 45 秒后出现错误
有任何线索吗?
This is a real newbie question. I installed proguard, and am trying to export my first app with it. I am getting the following error (real path substituted) in my eclipse console.
[2011-10-13 10:11:56 - RobotInvaders] Proguard returned with error code 1. See console
[2011-10-13 10:11:56 - RobotInvaders] Unable to access jar file "/[workspace path]/android-sdk-mac_x86/tools/proguard/lib/proguard.jar"
But I can access it through my xterm. There are no spaces or strange characters in the workspace path. I even changed the permissions with no effect. At first I thought some environment variable might be missing, but the error knows enough to get the whole correct path. The error comes up after about 30 - 45 seconds
Any clues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 C:\android-sdk\tools\proguard\bin\ 编辑 proguard.bat
删除这三行
替换为你的 sdk 工具的路径。我的路是..
In C:\android-sdk\tools\proguard\bin\ edit proguard.bat
Delete these three lines
Replace with the path of your sdk tools. My path is..
我真的不明白你的问题,但这些可能会帮助你:
Using Proguard for Android在 Eclipse 中出现错误
Proguard 错误:需要类路径分隔符 - 不确定我需要在哪里将路径放在引号中
Android蚂蚁问题(使用 ProGuard)
I really didn't understand your question but these might help you :
Using Proguard for Android in Eclipse got Error
Proguard error: Expecting class path seperator - not sure where I need to put a path in quotes
Android ant problem (for using ProGuard)