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
- Unsigned APK: the APK is being sideloaded or installed without being signed with a valid certificate.
- Incorrect signing process: the APK was not signed properly, or signing was interrupted or corrupted, leaving no valid certificate.
- Corrupted APK file: corruption has broken the certificate's integrity.
- 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, thenapksigner sign --ks my-release-key.keystore --ks-key-alias alias_name --out app-release.apk app-release-aligned.apk. Useapksignerrather thanjarsigner: apps targeting Android 11 (API 30) or higher need an APK Signature Scheme v2 signature, whichjarsignercannot produce. - Or build the APK in Android Studio with the build variant set to the appropriate signing scheme.
Related reading
- What is Jetifier?
- What is MAUI? and what are differences between MAUI and Xamarin
- What is meant by Ems? Android TextView
- What is NSLayoutConstraint UIView-Encapsulated-Layout-Height and how should I go about forcing it to recalculate cleanly?
- What is Killed9 and how to fix in macOS Terminal?
- What is loss_cls and loss_bbox and why are they always zero in training
- What is NSZombie?
- What is Prefix.pch file in Xcode?
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo 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 courseData 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.