Android Development
Error Handling
Certificate Errors
APK Installation
Troubleshooting

What is the INSTALL_PARSE_FAILED_NO_CERTIFICATES error?

Codemia Knowledge Hub ·

INSTALL_PARSE_FAILED_NO_CERTIFICATES means the APK you are installing does not contain the cryptographic certificates Android requires. It is part of Android's mechanism for ensuring the integrity and security of apps installed on a device, so the install is refused until the APK is properly signed.

Why Android requires a signed APK

An Android Package (APK) is the file format Android uses to distribute and install apps, roughly analogous to an .exe installer on Windows. It contains the app's code, resources, assets and manifest file.

Every APK must be signed with a digital certificate. Android uses that signature to verify who the developer is and that the code has not been maliciously altered.

What causes the error

  1. Unsigned APK: the APK is being sideloaded or installed without being signed with a valid certificate.
  2. Incorrect signing process: the APK was not signed properly, or signing was interrupted or corrupted, leaving no valid certificate.
  3. Corrupted APK file: corruption has broken the certificate's integrity.
  4. Incompatible or outdated signing scheme: signing mechanisms introduced in different API levels may not line up with older schemes when compatibility is not maintained.

Example and fixes

A typical case: a developer builds a release APK and runs adb install app-release.apk, and the install fails with this error because the APK was never signed. To fix it, sign the APK before installing:

  • Sign it manually with zipalign -p 4 app-release-unsigned.apk app-release-aligned.apk, then apksigner sign --ks my-release-key.keystore --ks-key-alias alias_name --out app-release.apk app-release-aligned.apk. Use apksigner rather than jarsigner: apps targeting Android 11 (API 30) or higher need an APK Signature Scheme v2 signature, which jarsigner cannot produce.
  • Or build the APK in Android Studio with the build variant set to the appropriate signing scheme.

Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No course covers this one yet

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms