2014-01-05 95 views
0

我已经构建了一个androidapp,我现在想打包一个APK。在应用程序中,我使用了Google Play服务库。当我收拾行李时,我会在这些线路上收到错误信息......该怎么办?无法导出签名/未签名的应用程序包

<!-- Title of confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=40] --> 
<string name="common_google_play_services_network_error_title">Network Error</string> 

<!-- Message in confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=NONE] --> 
<string name="common_google_play_services_network_error_text">A data connection is required to connect to Google Play services.</string> 

<!-- Title of confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=40] --> 
<string name="common_google_play_services_invalid_account_title">Invalid Account</string> 

<!-- Message in confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=NONE] --> 
<string name="common_google_play_services_invalid_account_text">The specified account does not exist on this device. Please choose a different account.</string> 

    <!-- Message in confirmation dialog informing user that date on the device is not correct, 
    causing certificate checks to fail. [CHAR LIMIT=NONE] --> 
    <string name="common_google_play_services_unsupported_date_text">The date on the device appears to be incorrect. Please check the date on the device.</string> 

ERROR

"common_google_play_services_network_error_title" is not translated in be 

Issue: Checks for incomplete translations where not all strings are translated 
Id: MissingTranslation 

If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages. 

If the string should not be translated, you can add the attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute. 

By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS. 

You can tell lint (and other tools) which language is the default language in your res/values/ folder by specifying tools:locale="languageCode" for the root <resources> element in your resource file. (The tools prefix refers to the namespace declaration http://schemas.android.com/tools.) 

[] 
+0

阅读lint错误消息。它给你许多好的选择。 – laalto

回答

1

这不是致命的错误真的。你应该在发布之前修正它,但是对于你,我只是禁止Lint被导出时自动调用Settings - >Android - >Lint Error Checking

0

该错误表示您在一个不同的文件夹中有一些字符串。在values-xx文件夹的strings.xml中的任何字符串都必须放置在值文件夹(默认文件夹)中,以便导出您的应用程序。

相关问题