在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').
在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').
解决方案 »
- progressBar 子线程更新UI
- JSON数据解析的问题,请高手帮忙
- 请教 怎么给通讯录中的联系人添加头像
- gallery图片设置背景图片问题。
- 怎么获得Canvas中的一个像素点的颜色值
- android 中这个错误信息是什么哦哦?
- android APP经过怎样处理,能在PC上运行?
- 关于eclipse中的citl +H无结果
- Android调用stopService方法发生空指针异常
- include布局后怎么在xml里修改text内容?
- 请问Andorid系统在卸载在运行的程序,被卸载的程序能够知道吗,并作出相应的操作,如发送短信
- 如何为Android的ImageView和GrilView设置透明背景色
@+id/CALL
@+id/SEARCH
全部改小写。
keyboard_test_fp616j.xml.bak
ID大小写这个我倒是没试过。