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
How to Set Android_Ndk_Home So That Android Studio Does Not Ask for Ndk Location
Android:Strike Out Text With Bold or Thicker Line Than Default Strike_Thru_Text_Flag
Alarm Manager Won't Work When the App Is Killed in the Background and Device Is Locked
How to Remove the Unnecessary Top Padding of the Navigation View
How to Separate a Country Code from a Phone Number in Android
Adb Is Not Detecting My Android Device on Ubuntu
Android:Get Current Date and Time from Firebase
How to Set Button Click Effect in Android
How to Make My App Work in All Devices
How to Remove Focus from Edittext When User Is Done Editing
Retrofit 2 Json Response Json Array and Object
Images Are Not Visible in React-Native App Release Build
Fastest Way to Upload Multiple Image to Server in Android
R Cannot Be Resolved - Android Error