我在Ant脚本中执行此操作。我链接一个库项目,更新它们并构建它们。但我一直在标题中得到这个错误。任何人都知道如何解决这个问题?
<target name="updateProject">
<echo>updating Project...</echo>
<exec dir="${scannerLibrary_home}" executable="ant">
<arg line="project"/>
<arg line="update"/>
<arg line="--path"/>
<arg line="."/>
</exec>
<exec dir="${projectroot}" executable="ant">
<arg line="project"/>
<arg line="update"/>
<arg line="--path"/>
<arg line="."/>
</exec>
<exec dir="${android_home}/tools" executable="./android">
<arg line="update"/>
<arg line="project"/>
<arg line="--target"/>
<arg line="4"/>
<arg line="--path"/>
<arg line="${scannerLibrary_home}"/>
</exec>
<exec dir="${android_home}/tools" executable="./android">
<arg line="update"/>
<arg line="project"/>
<arg line="--target"/>
<arg line="4"/>
<arg line="--path"/>
<arg line="${targetdir}"/>
</exec>
<antcall target="buildScanner"/>
</target>
<target name="buildScanner">
<exec dir="${scannerLibrary_home}" executable="ant">
<arg line="debug"/>
</exec>
<antcall target="buildProject"/>
</target>
<target name="buildProject">
<exec dir="${targetdir}" executable="ant">
<arg line="debug"/>
</exec>
<antcall target="install"/>
</target>