Problem
Today with the APK Anti-compilation tool to see the APK file generated by your project, found that the code is not confused, so set up with Proguard to confuse the code, but the confusion must be in the non-Debug mode to take effect, even if you are in Release mode to Run as start the APK generated Package, is still not confused with the use of Proguard. So decided to export the release version of the APK, the export of "signature" and "unsigned" two, all do, of course, to sign, so encountered the latter two problems.
First, the translation problem of Strings.xml
Right-click on your project name, pop up the menu below, select Android Tools, Export signed application package ...,
Then you'll see a hint like this:
and get the following error description:
To the effect that the export operation exits because of a fatal error Lint error Checking (detect Lint error), fix these errors and run the export, or "Run Checking" in the settings Android--Lint error ful page L Error check when exporting app "Turn off the option."
and the error description inside says is, strings.xml inside of App_name lacks AF (Afrikaans), AM (Amharic), AR, BG, BN-RBD, CA, cs, Da, de ... and other languages, this may be related to the number of Strings.xml in the project APPCOMPAT_V7 generated automatically when the project was created, and we certainly do not want each language to be translated again, only to eat more, unless we really want to translate every language.
On the other hand, we don't want to turn off all Lint Error Checking, so we can do this by opening the Eclipse menu of Windows--perferences,
Switch to the Lint Error Checking subkey under Android, below which is the default setting for Missing translation:
We can change the Severity of this item from Fatal (fatal) to Ignore (ignore) or Warning (warning), such as:
Another: On the issue of multilingual translation, there is a problem is worth attention, such as: "Android translation multi-language string considerations."
The comma problem of signature KeyStore
Click OK, then restart the previous steps to start the export, this time, here is the export interface, select the project you want to export:
The next is to choose KeyStore, you can choose the existing KeyStore or create a new keystore, I choose New, enter a password, and then go to the following settings interface:
Next, at the end of the build, we get an error like this:
Google, find such an article: "Keytool error: Java.io.IOException:Incorrect AVA format", StackOverflow also has a similar discussion: Keytool error: Java.io.IoException:Incorrect AVA Format, the conclusion is the same, the original reason is because "," (comma) is considered to be a special character, which usually occurs in writing "city or Locality" , according to our usual habits will be written as "Beijing,China", and I have no exception to write "Guangxi,China", so the error, find the reason, remove the comma and try again, It's OK.
In addition to Eclipse, there is a signature method, which is to use Keytool and Jarsigner to sign the app, which is allowed to add this comma, "Keytool Error: Java.io.IOException:Incorrect AVA "Format" is mentioned in.
Put a keytool here. Description and usage of special characters, excerpt from: http://www.oschina.net/question/163910_29310,
Special characters also include, plus (+), quotation marks ("), slash (\), greater than less than (< and >), semicolon (;) Wait, the solution is to use the \ Escape character.
For more information about the Android APP signature, see:
Http://developer.android.com/guide/publishing/app-signing.html
http://yangguangfu.iteye.com/blog/723182
<. End.>
Two issues and solutions for using Eclipse to sign APK