Android ant problem (for using ProGuard)

99封情书 提交于 2020-02-08 05:30:31

问题


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

回答1:


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:

Android SDK\platforms\android-8\android.jar:...

Use:

"Android SDK\platforms\android-8\android.jar";...



回答2:


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.



来源:https://stackoverflow.com/questions/4422846/android-ant-problem-for-using-proguard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!