This attribute must be localized.错误解决方式
2012-06-08 10:11
417 查看
http://hi.baidu.com/worldofhua/blog/item/25e9ed51cd866b15377abec4.html/cmtid/08a352b3093fbaa8d8335a79
eclipse中编译没有问题,但是在make自己建立的项目的时候,
提示了错误“This attribute must be localized”,这种问题一般情况是因为在res/xml文件夹下的中
或者在res/layout下的文件中出现了没有多语言话的文本例如
<TextView
android:id="@+id/myTextView1"
android:text="type"
android:layout_width="fill_parent">
</TextView>
解决方式
在res/values/strings.xml中定义字符串
<string name="str_type">type</string>
然后把上面的内容改为
<TextView
android:id="@+id/myTextView1"
android:text="@string/str_type"
android:layout_width="fill_parent">
</TextView>
这是android强制实行多语言话
eclipse中编译没有问题,但是在make自己建立的项目的时候,
提示了错误“This attribute must be localized”,这种问题一般情况是因为在res/xml文件夹下的中
或者在res/layout下的文件中出现了没有多语言话的文本例如
<TextView
android:id="@+id/myTextView1"
android:text="type"
android:layout_width="fill_parent">
</TextView>
解决方式
在res/values/strings.xml中定义字符串
<string name="str_type">type</string>
然后把上面的内容改为
<TextView
android:id="@+id/myTextView1"
android:text="@string/str_type"
android:layout_width="fill_parent">
</TextView>
这是android强制实行多语言话
相关文章推荐
- This attribute must be localized.错误解决方式
- This attribute must be localized.错误解决方式
- This attribute must be localized.错误解决方式
- This attribute must be localized.错误解决方式
- This attribute must be localized.错误解决方式
- How to solve Error: This attribute must be localized. 两种方式
- This attribute must be localized错误
- Error: This attribute must be localized. 解决方法
- Error: This attribute must be localized. 解决方法
- 如何忽略Android资源编译错误 Error: this attribute must be localized.
- 忽略Android资源编译错误 Error: this attribute must be localized
- Android studio应用导入源码错误This attribute must be localized
- 如何忽略Android资源编译错误 Error: this attribute must be localized.
- Error: This attribute must be localized. 解决方法
- 如何忽略Android资源编译错误 Error: this attribute must be localized.
- First token must be SYMBOLSET, this doesn't look like a symbol file错误的解决
- This attribute must be localized”
- Android Error: This attribute must be localized.
- 解决错误:This bundle is invalid - The file extension must be .zip
- There is already an open DataReader associated with this Command which must be closed first的错误解决办法