Update not downloading on android 4.2 or below with error "Package file not signed correctly"

  • 2
  • Problem
  • Updated 5 years ago
  • Solved
I've created the apk signing key with jdk8, and when uploading the apk on play store , the devices with version 4.2 and below are not able to download the update . Its showing "Package file not signed correctly ". I've created the keystore file using keytool keygen . Build ID is 1089718.
Any help would be appreciated.
Photo of Deependra Singh

Deependra Singh

  • 7 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 2
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Photo of Federico González Brizzio

Federico González Brizzio

  • 4 Posts
  • 0 Reply Likes
Fix (from Damian Perera)
1. Build release APK on PhoneGap
2. Download APK and delete Meta-Inf folder inside it
3. Resign the APK locally
4. Zip align the APK

To do 3:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my-release-key.keystore my_application.apk alias_name

To do 4:
zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Photo of Deependra Singh

Deependra Singh

  • 7 Posts
  • 0 Reply Likes
@Federico - Thanks for suggestion , that worked . cheers :D