Android Studio的String报XXX. main. prompt getPermission failed"- is not traslated in "de"……

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_40420578/article/details/100151571

新建module_app_dormitory,在module_app_dormitory的String写入内容后报(如下图):module_ app home. main. prompt getPermission failed"- is not traslated in "de" (German), "ru" (ussia), "pt" (Portuguese), "en" (English), "it* (taian), "fr" (French), "pl" (olish), "es" (Spanish, "zh" (Chinese) less. (Crl+F1)sonoIfanaoblicationbaamorethanonelocale thenallthestrinagdeclaredinoneanaaeoa
languages.
If the string should not be translated, you can add the atribute translatabie=" false" on the Kstring> element, or you can define all your non-translatable strings in a resource file called donottransiate. xa1. Or, you can ignore the issue with atools:ignore=' 'MissinzTransiation attribute.
You can tell lit (and other toos) which language is the default language in your res/values/ folder by specifying too1ocilec lanzuazeCode for the root cresources element in your resource file. (The too1e prefix refers to the namespace declarationhttp://schemas. android. coa/too1s.)Issue id: MissingTranslation

 

 

 

 

 

 

 

解决方法(添加红色即可):

<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
……………………………………………………………………………………

</resources>

猜你喜欢

转载自blog.csdn.net/weixin_40420578/article/details/100151571
DE
今日推荐