使用 Proguard 时从 Eclipse 导出 android .apk 时出错

发布于 2024-11-26 19:55:42 字数 531 浏览 2 评论 0原文

我想将我的 Android 应用程序从 Eclipse 导出到发行版 .apk。因此,我在 Eclipse 中右键单击项目名称,选择导出,浏览所有导出对话框,最后出现以下错误:

'C:\Program' is not recognized as an internal or external command, an executable program, or a command file.
'-jar' is not recognized as an internal or external command, an executable program, or a command file.

我运行的是 Windows Vista,并且正确配置了 Eclipse 和 Android SDK。我很确定 PATH 变量中缺少某些内容,但是由于 Window 的空格字符和 Eclipse 的混淆导致文件名被截断,我不知道该怎么办。

有没有人遇到过这个问题?

如果我禁用 Proguard,我就不会再收到错误。但我需要 Proguard...

I want to export my android application from Eclipse to a release .apk. So I right click the project name in eclipse, select export, go through all the exporting dialogs, and finally I get these errors:

'C:\Program' is not recognized as an internal or external command, an executable program, or a command file.
'-jar' is not recognized as an internal or external command, an executable program, or a command file.

I am running Windows Vista, and I have Eclipse and Android SDK correctly configured. I'm pretty sure something is missing in the PATH variable, but since the filename is truncated because of Window's space character and Eclipse being confused, I don't know what to do.

Has anyone has already encountered this problem ?

If i disable Proguard, I don't get the error any more. But I need Proguard...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

前事休说 2024-12-03 19:55:42

好的,如果有人有同样的问题:它位于 Windows> Preferences> Android> Sdk location 下。
我使用路径“c:\Progra~1\Android\android-sdk-windows”。

Ok if anyone has the same problem: It was under Windows>Preferences>Android>Sdk location.
I used the path "c:\Progra~1\Android\android-sdk-windows".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文