我被迫使用Google Play服务(我需要定位服务).因此,在我在设备上编写所有代码和测试应用程序后,我尝试导出已签名的应用程序.而我得到的只是Lint错误(即使我将Lint中的MissingTranslation错误从致命变为警告)
"auth_client_using_bad_version_title"
is translated here but not found in default locale
Run Code Online (Sandbox Code Playgroud)
这个错误在所有"values-"文件夹中重复我知道我可以在导出应用程序之前禁用lint检查.但有没有办法在没有任何黑客,错误和谷歌开发人员诅咒的情况下做到这一点?所以我认为这个案例有两个:
我创建了一个values-fr和values-es和values.
内容values是英文,但对于每个字符串我收到此错误:
<string name="cancel">Cancel</string>
Run Code Online (Sandbox Code Playgroud)
它说:"cancel" is translated here but is not found in default locale我不确定这意味着什么.
values/strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation" tools:locale="en">
<string translatable="false" name="app_name">Kendal Mintfest</string>
<string name="action_settings">Settings</string>
<string name="itin_string">Itinerary</string>
<string name="event_string">Events</string>
<string name="info_string">Info!</string>
<string name="filerText">Note: Turning this option on will show only results on the selected day on the hour you select.</string>
<string-array name="time_filter_array">
<item>Friday 30th August</item>
<item>Saturday 31st August</item>
<item>Sunday 1st September</item>
</string-array>
<color name="Pink">#EC008B</color>
<string name="okay">Okay</string> …Run Code Online (Sandbox Code Playgroud)