在Eclipse中使用Proguard的为Android有错误 [英] Using Proguard for Android in Eclipse got Error

查看:98
本文介绍了在Eclipse中使用Proguard的为Android有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经采取的Eclipse的全新安装,所有最新的Andr​​oid工具,并希望使用Proguard的现有项目,但现在我已经创建了一个新的空白之一。 我添加了一个 proguard.cfg 文件到我的项目 加入 proguard.config = proguard.cfg 我的 default.properties

I have taken a fresh install of Eclipse and all the latest Android tools and want to use Proguard on existing project, but for now I have created a new blank one. I have added a proguard.cfg file to my project added proguard.config=proguard.cfg to my default.properties

现在,当我尝试导出我得到以下错误

Now when I try to export I get the following error

[2010-12-12 10:36:35 - ApplicationTest] Proguard returned with error code 1. See console
[2010-12-12 10:36:35 - ApplicationTest] 'C:\Program' is not recognized as an internal or external command,
[2010-12-12 10:36:35 - ApplicationTest] operable program or batch file.
[2010-12-12 10:36:35 - ApplicationTest] '-jar' is not recognized as an internal or external command,
[2010-12-12 10:36:35 - ApplicationTest] operable program or batch file.

我知道这意味着有一个文件路径设置不正确,问题是在哪里到底是因为我通过一般属性和项目属性已经看过并不能看到这样我坚持到什么改变任何提及ProGuard的或模糊处理

I know it means there is a filepath setup incorrectly, question is where the heck is as I have looked through the general properties and project properties and can't see any reference to proguard or obfuscation so am stuck on what to change

任何帮助AP preciated。

Any help appreciated.

推荐答案

您需要定义你的Andr​​oid SDK的路径没有空格。复制和;从粘贴此答案由马克:

You need to define your Android SDK path without spaces. Copy&Paste from this answer by Mark:

<一个href="http://stackoverflow.com/questions/4356979/proguard-error-expecting-class-path-seperator-not-sure-where-i-need-to-put-a-p/4559693#4559693">Proguard错误:期待的类路径分隔符 - 不知道,我需要放在引号中的路径

是的,这为我工作。为了把它   具体做法是:

Yep, that worked for me. To put it specifically:

在Eclipse中:窗口> preferences>   安卓> SDK位置

In Eclipse: Window > Preferences > Android > SDK Location

使用类似   C:\ PROGRA〜1 \ Android的SDK(或者C:\ PROGRA〜2在64位\ Android的SDK)

use something like c:\Progra~1\android-sdk (or maybe c:\Progra~2\android-sdk on 64bit)

有关我的路径是C:\ PROGRA〜1 \机器人\ Android的SDK-窗口

这篇关于在Eclipse中使用Proguard的为Android有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆