简体   繁体   English

在Android APK应用程序中添加语言资源

[英]Add language resources in android apk application

Well I have a single language android application that I translated strings in res/values/strings.xml to make it multi language application. 好吧,我有一个单一语言的android应用程序,我将其翻译为res / values / strings.xml中的字符串以使其成为多语言应用程序。 I made for instance values-fr/strings.xml , values-es/strings.xml ... When compiling my application, I get this error mayapp/res/values-fr/strings.xml:1: error: Error parsing XML: XML declaration not well-formed mayapp/res/values-es/strings.xml:1: error: Error parsing XML: XML declaration not well-formed 我为实例创建了values-fr / strings.xmlvalues-es / strings.xml ...编译我的应用程序时,出现此错误mayapp / res / values-fr / strings.xml:1:错误:解析XML时出错:XML声明格式不正确mayapp / res / values-es / strings.xml:1:错误:解析XML时出错:XML声明格式不正确

How to solve this problem. 如何解决这个问题呢。 I need your help since I'am new in android development. 由于我是android开发的新手,因此需要您的帮助。

使用数字代码表示特殊字符: <string name="app_name">R&#233;pondeur</string>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM