Ant打包so的问题

最近在做批量打包apk,项目中用到so,我用apkbuilder的-nf,但是没有用,so没有打进去,还提示“THIS TOOL IS DEPRECATED. See --help for more information.”
target代码片段:(so存在libs/armeabi)

<target name="release" depends="dex, package-res">

<echo>Packaging ${out-unsigned-package} for release...</echo>

<exec executable="${apk-builder}" failonerror="true">

<arg value="${out-unsigned-package-ospath}" />

<arg value="-u" />

<arg value="-z" />

<arg value="${resources-package-ospath}" />

<arg value="-f" />

<arg value="${intermediate-dex-ospath}" />

<arg value="-rf" />

<arg value="${srcdir-ospath}" />

<arg value="-rj" />

<arg value="${external-libs-ospath}" />

<arg value="-nf"/>

<arg value="${external-libs-ospath}/armeabi"/>

</exec>

</target>

 

解决办法:

<arg value="-nf"/>
<arg value="${external-libs-ospath}/armeabi"/>

修改为
<arg value="-nf"/>
<arg value="${external-libs-ospath}"/>

不需要指定子目录

你可能感兴趣的:(android,ant,so,自动打包)