Problems and solutions to APK signatures using eclipse

Source: Internet
Author: User

Today, using the APK decompile tool to look at your own project generated APK files, found that the code is not confused, so set up with the Proguard confusing code, but the confusion must be in the non-Debug mode will not be effective, even if you are in release mode to Run as startup generated by the APK Package, is still not confused by using Proguard. So decided to export the release version of the APK, the export of "signature" and "not signed" two kinds, have done so, of course, to sign a bit, so encountered the latter two problems.

I. Translation problems of Strings.xml

Click the right mouse button on your project name, pop the menu below and choose Android Tools-> Export signed application Package ...,

Then you'll see a hint like this:

and get the following error description:

The effect is that the export operation exits because of a fatal error in the Lint error Checking (detecting the Lint error), please fix these errors and run the export, or put "run Lint" in the setup's Android-> Checking error ful page L Error check when exporting app "Turn off the options."

and the error description inside says, Strings.xml inside App_name lacks AF (Afrikaans), AM (Amharic), AR, BG, BN-RBD, CA, cs, Da, de ... Languages such as translation, this may be the creation of projects automatically generated when the number of appcompat_v7 in the language of the strings.xml, we certainly do not want to translate every language, ah, is purely to eat more, unless we really want to translate every language.

On the other hand, we don't want to turn off all the Lint Error Checking, so we can do that, open the Eclipse menu of Windows-> perferences,

Switch to the Android-> Lint Error Checking subkey below, this is the default setting for Missing translation:

We can modify the Severity of this item from Fatal (fatal) to Ignore (ignore) or Warning (warning), as shown below:

Another: There is a problem with multilingual translation, such as: "Android translation multi-national language string considerations."

Second, the issue of the comma of signature KeyStore

Click OK, and then restart the previous steps to start exporting, this time it is OK, here is the export interface, select the item you want to export:

The back is the choice KeyStore, you can choose the existing KeyStore or create a new keystore, I choose New, enter the password, and then enter the following settings interface:

Next, at the end of the build, we get this error:

Google, find this 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 a special character, which usually occurs when writing "City or locality", according to our usual habits will be written "Beijing," and I was no exception to write "Guangxi,", so the mistake, find the reason, remove the comma and try again, OK.

In addition to Eclipse, there is a signature method that uses Keytool and Jarsigner to sign the app, and this signature is allowed to join the comma, Keytool error: Java.io.IOException:Incorrect AVA It is mentioned in format.

Here is a keytool on the special characters of the description and usage, excerpted from: http://www.oschina.net/question/163910_29310,

Special characters also include a plus sign (+), a quotation mark ("), a slash (), greater than the less-than sign (< and >), and a semicolon (;) And so on, the solution is to use the escape character.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.