在xml文件中配置了几个button按钮,结果在linux下编译出现这纠结的错误,大侠们,帮帮小弟!谢谢!
在xml文件中写入:(开头和结尾省略了)
<Button android:id="@+id/CALL" android:layout_width="47px"
android:layout_height="45px" android:text="call" android:layout_x="258px"
android:layout_y="186px">
</Button>
<Button android:id="@+id/MUTE" android:layout_width="30px"
android:layout_height="29px" android:text="mute" android:layout_x="257px"
android:layout_y="232px">
</Button>
<Button android:id="@+id/BACK" android:layout_width="45px"
android:layout_height="30px" android:text="back" android:layout_x="332px"
android:layout_y="125px">
</Button>
<Button android:id="@+id/SEARCH" android:layout_width="45px"
android:layout_height="30px" android:text="search" android:layout_x="332px"
android:layout_y="156px">
</Button>
<Button android:id="@+id/POWER" android:layout_width="45px"
android:layout_height="25px" android:text="power" android:layout_x="332px"
android:layout_y="185px">
</Button>
<Button android:id="@+id/HANDFREE" android:layout_width="45px"
android:layout_height="25px" android:text="handfree"
android:layout_x="332px" android:layout_y="209px">
</Button>
在linux下编译出现的错误:
No private recovery resources for TARGET_DEVICE MSM7x25
target R.java/Manifest.java: MMITest_II (out/target/common/obj/APPS/MMITest_II_intermediates/src/R.stamp)
res/layout/keyboard_test_fp616j.xml.bak:0: error: Resource entry keyboard_test_fp616j is already defined.
res/layout/keyboard_test_fp616j.xml:0: Originally defined here.
packages/apps/MMITest_II/Code/br_Froyo/res/layout/keyboard_test_fp616j.xml:124: error: Error: This attribute must be localized. (at 'text' with value 'call').
packages/apps/MMITest_II/Code/br_Froyo/res/layout/keyboard_test_fp616j.xml:128: error: Error: This attribute must be localized. (at 'text' with value 'mute').
packages/apps/MMITest_II/Code/br_Froyo/res/layout/keyboard_test_fp616j.xml:132: error: Error: This attribute must be localized. (at 'text' with value 'back').
packages/apps/MMITest_II/Code/br_Froyo/res/layout/keyboard_test_fp616j.xml:136: error: Error: This attribute must be localized. (at 'text' with value 'search').
packages/apps/MMITest_II/Code/br_Froyo/res/layout/keyboard_test_fp616j.xml:140: error: Error: This attribute must be localized. (at 'text' with value 'power').
packages/apps/MMITest_II/Code/br_Froyo/res/layout/keyboard_test_fp616j.xml:144: error: Error: This attribute must be localized. (at 'text' with value 'handfree').