无法导出已签名/未签名的applicationpackage

时间:2014-01-05 17:42:45

标签: android eclipse apk android-build

我已经构建了一个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.)

[]

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:0)

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