在使用 Ant 构建我的项目时,我似乎遇到了障碍。QR code Scanner android 库的资源和我的项目资源似乎没有合并到一个 .arsc 文件中。这是我的脚本的 aapt 部分的片段。
<exec executable="${aapt}" failonerror="true">
<arg value="package" />
<arg value="-M" />
<arg path="AndroidManifest.xml" />
<arg value="-A" />
<arg path="assets" />
<arg value="-S" />
<arg path="./res" />
<arg value="-S" />
<arg path="../QRcode Scanner/res" />
<arg value="-I" />
<arg path="${android-platform-jar}" />
<arg value="-f" />
<arg value="-F" />
<arg value="${resources.file}" />
</exec>
我的控制台错误日志如下所示:-
android-package-resources:
[echo] Packaging Android resources into C:\Praveen\Eclipse\eclipse-SDK-3.7.
1-win32-x86_64\workspace\HH3_Standard Mode Application/bin/resources.ap_ ...
[exec] C:\Praveen\Eclipse\eclipse-SDK-3.7.1-win32-x86_64\workspace\QRcode S
canner\res\values\colors.xml:18: error: Resource at contents_text appears in ove
rlay but not in the base package; use <add-resource> to add.
[exec] C:\Praveen\Eclipse\eclipse-SDK-3.7.1-win32-x86_64\workspace\QRcode S
canner\res\values\colors.xml:19: error: Resource at encode_view appears in overl
ay but not in the base package; use <add-resource> to add.
[exec] C:\Praveen\Eclipse\eclipse-SDK-3.7.1-win32-x86_64\workspace\QRcode S
canner\res\values\colors.xml:20: error: Resource at help_button_view appears in
overlay but not in the base package; use <add-resource> to add.
[exec] C:\Praveen\Eclipse\eclipse-SDK-3.7.1-win32-x86_64\workspace\QRcode S
canner\res\values\colors.xml:21: error: Resource at help_view appears in overlay
but not in the base package; use <add-resource> to add.
[exec] C:\Praveen\Eclipse\eclipse-SDK-3.7.1-win32-x86_64\workspace\QRcode S
canner\res\values\colors.xml:22: error: Resource at possible_result_points appea
rs in overlay but not in the base package; use <add-resource> to add.