您的位置:首页 > 其它

This attribute must be localized”

2012-12-04 12:27 330 查看
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强制实行多语言化
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: