Stay Hungry, Stay Foolish

android合并第三方jar包

android 8375℃ 0评论

合并方法使用Ant 进行合并,下载地址.
下载后解压进入bin目录下:

不同平台使用的脚本不同linux和macos系统使用第一个即可使用方法:ant -buildfile=build.xml (这里放脚本路径)

2、建立 build.xml 合并脚本

<?xml version="1.0" encoding="UTF-8"?>
<project name="mearge.jar" basedir=".">
	<jar destfile="mearge.jar">
  		<zipgroupfileset dir="." includes="*.jar" /> 
	</jar>
</project>

其中mearge.jar是打包后生成的文件名,保存脚本。将需要打包的.jar放到和脚本同一目录。

喜欢 (1139)
取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦


Warning: Use of undefined constant PRC - assumed 'PRC' (this will throw an Error in a future version of PHP) in C:\inetpub\wordpress\wp-content\themes\XHBlog\comments.php on line 17
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址