What Is Install_Parse_Failed_No_Certificates Error

What is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?

Did you edit the AndroidManifest.xml directly in the .apk file? If so, that won't work.

Every Android .apk needs to be signed if it is going to be installed on a phone, even if you're not installing through the Market. The development tools work round this by signing with a development certificate but the .apk is still signed.

One use of this is so a device can tell if an .apk is a valid upgrade for an installed application, since if it is the Certificates will be the same.

So if you make any changes to your app at all you'll need to rebuild the .apk so it gets signed properly.

Android INSTALL_PARSE_FAILED_NO_CERTIFICATES

(Posted on behalf of the OP).

Finally I find the solution.

In my case The solution is gradle plugin version! I'm using android studio ver 2.3.0-rc1 and gradle plugin (root build.gradle) with the same version, the release file could not install due to INSTALL_PARSE_FAILED_NO_CERTIFICATES failure, so I change the version of gradle plugin to 2.2.3 and make a new release again and the failure solved. I hope my solution help other guys with the same issue.

Conclusion:
root build.gradle file:

Replace:

classpath 'com.android.tools.build:gradle:[any unstable version like 2.3.0-rc1]'

To:

classpath 'com.android.tools.build:gradle:2.2.3'

What is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?

Did you edit the AndroidManifest.xml directly in the .apk file? If so, that won't work.

Every Android .apk needs to be signed if it is going to be installed on a phone, even if you're not installing through the Market. The development tools work round this by signing with a development certificate but the .apk is still signed.

One use of this is so a device can tell if an .apk is a valid upgrade for an installed application, since if it is the Certificates will be the same.

So if you make any changes to your app at all you'll need to rebuild the .apk so it gets signed properly.



Related Topics



Leave a reply



Submit