error: Resource at touchFocusParameter appears in overlay but not in the base package; use to add.
target R.java/Manifest.java: Camera (out/target/common/obj/APPS/Camera_intermediates/src/R.stamp) device/htc/bravo/overlay/packages/apps/Camera/res/values/config.xml:24: error: Resource at touchFocusParameter appears in overlay but not in the base package; use <add-resource> to add. make: *** [out/target/common/obj/APPS/Camera_intermediates/src/R.stamp] Error 1 jay@shelley:~/android/gingerbread$
修改文件:
<resources>
<!-- Autofocus parameters -->
<string name="touchFocusParameter">touch-focus</string>
</resources>
<resources>
<!-- Autofocus parameters -->
<add-resource type="string" name="touchFocusParameter" />
<string name="touchFocusParameter">touch-focus</string>
</resources>
红色部分为添加部分。
采取了 http://www.poemcode.net/2010/09/android-sdk-addon/ 中 添加 Overlay(Add Resoruce) 的解释。
http://developer.android.com/guide/topics/resources/available-resources.html
本文介绍了解决Android开发过程中遇到的资源叠加错误方法。当在自定义资源文件中定义了在基本包中未出现的资源时,会触发该错误。文章提供了一种通过使用<add-resource>标签来解决这一问题的有效方案。
6万+

被折叠的 条评论
为什么被折叠?



