Android ant 问题(针对使用 ProGuard)
有人知道我可以在哪里查找配置错误吗?当我尝试编译 ProGuard 并将其包含在我的项目中(使用最近发布的 Android SDK)时,我立即收到此错误消息。查看错误消息中提到的文件,它是 Google 提供的文件,我没有看到任何错误。有什么想法吗?谢谢。
ant release
...
BUILD FAILED
C:\ [...] \Android SDK\tools\ant\main_rules.xml:430: Expecting class path separator ';' before 'SDK\platforms\android-8\android.jar' in argument number 1
Does anybody know where I can look for an configuration error? I'm getting this error message as soon as I'm trying to compile and to include ProGuard in my project (using the recently released Android SDK). Looking at the mentioned file of the error message it's a file by Google and I don't see any errors there. Any idea? Thx.
ant release
...
BUILD FAILED
C:\ [...] \Android SDK\tools\ant\main_rules.xml:430: Expecting class path separator ';' before 'SDK\platforms\android-8\android.jar' in argument number 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来像 CLASSPATH 分隔符问题。
将
:
更改为;
并查看是否有帮助。另外,将路径放在双引号中。例如,代替:
使用:
Looks like a CLASSPATH separator character issue.
Change
:
to;
and see if that helps.Also, put the path in double-quotes. For example, instead of:
Use:
您还可以尝试使用ant“echo”标签打印出属性并查看它们是如何错误的。要打印构建文件中设置的所有属性,请使用
ant任务,在调试ant脚本时非常有用。You can also try the ant "echo" tag to print out the properties and see how they are wrong. To print out all properties set in a build file, use
<echoproperties />
ant task, it is very useful in debugging ant scripts.