这里有一个简单的方法来做它与蚂蚁,发现这在 Volley 源代码。将下面的代码添加到 custom_ rules. xml,然后使用 ant jar构建
<?xml version="1.0" encoding="UTF-8"?>
<project name="volley-rules" default="help">
<!-- A rule to generate the JAR for inclusion in an Android
application. Output file will be bin/volley.jar -->
<target name="jar" depends="-compile">
<jar destfile="bin/volley.jar"
basedir="bin/classes" />
</target>
</project>