Android Signature issue, Jarsigner problem

Source: Internet
Author: User

Jarsigner: Unable to find the Qulordy certificate chain. Qulordy must reference a valid KeyStore key entry that contains the private key and the corresponding public key certificate chain.

This is the wrong statement, hint.

On this error, the online said less, found a blog, that is to say:

/** * This is the problem mentioned in the blog, and the solution, the original address: http://blog.csdn.net/jzh2012/article/details/7400737 * But after I saw this, I still couldn't get my head out. Issue two: Jarsigner: Unable to find the Androidapp.keystore certificate chain. Androidapp.keystore must reference a valid KeyStore key entry that contains the private key and the corresponding public key certificate chain. Method: When generating a digital certificate with Keytool, you must ensure that the name-keystore Androidapp.keystore-alias Androidapp.keystore must be the same.

OK, he's right, but it's too vague for the first time to get people to make it more blurred.

I'm going to go after him in this direction. There is a keystore command to generate a command, as follows

Keytool-genkey-alias android.keystore-keyalg rsa-validity 20000-keystore android.keystore

According to the method described above,-keystore Androidapp.keystore-alias Androidapp.keystore must have the same name.

I looked, indeed the same, and then eclipse in ->android Tools, Export signed application package ...

Then use existing KeyStore, this time unexpectedly can, then explain my keystore is correct, the problem must be in eclipse or my build.xml and custom_rules.xml inside.

But 1.eclipse must be right.

Follow the 2.build.xml is automatically generated, it is not wrong (of course, the attitude of doubt authority is very good, but here I chose to believe)

Last 3. It's just me. Custom_rules.xml a problem.

After a thorough examination, sure enough, (the code below is custom_rules.xml )

    <property         name= "KeyStore"         value= " Android.keystore " />    <property         name= "Keystore.password"         value= "Your password"   />    <property        name= "Key.alias"         value= "andy.com"  /> <!--  Here's the wrong   The solution to the quoted blog post is  --> 

Change the above to

    <property         name= "KeyStore"         value= " Android.keystore " />    <property         name= "Keystore.password"         value= "Your password"   />    <property        name= "Key.alias"         value= "Android.keystore"  /> <!--  To be consistent with KeyStore,  I finally understood the meaning of this sentence  --> 

And then the rest of the Custom_rules.xml , it's not wrong.

Android Signature issue, Jarsigner problem

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.