Android App Bundle APPCOM_V7 when packaged, an error occurred: "XXX" Isnottranslatedin "AF" (Afrikaans), "AM" (Amharic), "Ar" (Arabic) .....

Source: Internet
Author: User


Issue: When we develop an Android application, we must package the application before publishing the application.


As for the complete process from package to release, refer to: Android App Publishing Process---bowl POD release process


After updating ADT to 22.6.0 version, this library appeared. Appcompat_v7 is a compatible package of Google itself, which is a support library that can use the interface of version 4.0 above 2.1. For example, using ActionBar eliminates the need to use third-party support libraries.





When the project is bundled with Google's official Compatibility Pack APPCOMPAT_V7, packaging the project often encounters problems such as the following:



The process for selecting an Eclipse ADT Package application is as follows:






At this point, however, the following prompt appears:

and the original error-free program (VALUES/STRINGS.XML) will also receive the following error message:
[HTML]View Plaincopy
  1. "App_name" is not translated in "AF" (Afrikaans), "AM" (Amharic), "Ar" (Arabic), "BG" (Bulgarian), "Ca" (Catalan),
  2. "CS" (Czech), "Da" (Danish), "de" (German), "El" (Greek), "En-rgb" (English:united Kingdom), "En-rin" (中文版:
  3. India), "es" (Spanish), "Es-rus" (spanish:united states), "Et-ree" (Estonian:estonia), "Fa" (Persian),
  4. "Fi" (Finnish), "fr" (French), "Fr-rca" (French:canada), "Hi" (Hindi), "HR" (Croatian), "Hu" (Hungarian), "hy-
  5. RAM "(Armenian:armenia)," in "(Indonesian)," it "(Italian)," IW "(Hebrew)," ja "(Japanese)," Ka-rge "(Georgian:
  6. Georgia), "Km-rkh" (Khmer:cambodia), "Ko" (Korean), "Lo-rla" (Lao:lao people ' s Democratic Republic),
  7. "LT" (Lithuanian), "LV" (Latvian), "Mn-rmn" (Mongolian:mongolia), "Ms-rmy" (Malay:malaysia), "NB" (Norwegian
  8. BOKM?L), "NL" (Dutch), "pl" (Polish), "PT" (Portuguese), "Pt-rpt" (Portuguese:portugal), "Ro" (Romanian),
  9. "Ru" (Russian), "SK" (Slovak), "SL" (Slovene), "SR" (Serbian), "SV" (Swedish), "SW" (Swahili), "th" (Thai),
  10. "TL" (Tagalog), "tr" (Turkish), "UK" (Ukrainian), "VI" (Vietnamese), "ZH-RCN" (Chinese:china), "Zh-rhk" (Chinese:
  11. Hong Kong), "Zh-rtw" (Chinese: province of China), "zu" (Zulu)

What is the reason? The reasons are as follows:
After the Android SDK Tool R19, Export encountered the issue of XXX is not translated in yyy, zzz.
For example, "Auto_name" is not translated in En, zh_cn.
This is because the ANDROID SDK Tool changes the android_lint_complete_regions to need to be checked.
How to solve it?

In fact, the above hints have given us the answer. One is "fix these before running Export" and the other is "turn off ' Run full error check when exporting app '"
Here's how:
First say the latter: "Turn off ' Run full error check when exporting app '"
(1) Open preference in Eclipse, press action:

(2) say the former: "Fix these before running Export"
The operation is as follows:

Double-click Select 4, and a description of the problem appears on the left side of 5, as follows:

Box also gives us three ways to solve the problem.
That
1 If The string should not is translated, you can add the attribute translatable= "false" on the <string> element,

This method is only suitable for a small number of cases.
2 "If the number of strings is large, it can be cumbersome, and another method may be used:
Or you can define all your non-translatable strings in a resource file called Donottranslate.xml.
That is, we can unify all the strings that do not need to be non-translatable into a file called Donottranslate.xml.
Create a new Donottranslate.xml file in values and put a string that does not need to be non-translatable.
Donottranslate.xml:
[HTML]View Plaincopy
    1. <span style= "FONT-SIZE:14PX;" ><?xml version= "1.0" encoding= "Utf-8"?>
    2. <resources>
    3. <string name= "App_name" >UMengDemo</string>
    4. <string name= "Action_settings" >Settings</string>
    5. <string name= "Sharepic_text" > Share local images </string></span><pre name= "code" class= "HTML" style= " text-indent:0.10000000149011612px; " ><span style= "FONT-SIZE:14PX;" ></resources></span>


3 "Or, you can ignore the issue with a tools:ignore=" missingtranslation "attribute.
The third method is to ignore this problem directly with the tools:ignore= "Missingtranslation" attribute
After the above operation is completed, it is best to choose "Clean" the project, the method is as follows:

This will solve the above problems.





Android App Bundle APPCOM_V7 when packaged, an error occurred: "XXX" Isnottranslatedin "AF" (Afrikaans), "AM" (Amharic), "Ar" (Arabic) .....


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.