6

I have release apk with signed keys but it's not installing on android devices, its shows this message "The apk failed to install Error: Could not parse error string" but debugging mode apk, the app works fine.

release command

flutter build apk --release.

I did follow this question to solve it, hope it helps someone.

Paresh Mangukiya
  • 37,512
  • 17
  • 201
  • 182
Asfos22
  • 323
  • 1
  • 5
  • 14

2 Answers2

13

If you're trying to install a signed APK after using a debugging mode APK, Android will detect differences in signature, and refuse to install it.

Make sure you've uninstalled the unsigned debugging APK first from the device, and try to install again.

failspy
  • 156
  • 1
  • 3
  • Please l tried that but still not working. Error "The apk failed to install Error: Could not parse error string" – Asfos22 Jun 05 '19 at 17:04
  • Couple different things it could be. What's your Android's API version? – failspy Jun 05 '19 at 17:23
  • One thing to try for more information is try to install the generated APK using adb: `adb install your-app.apk` and see if that installs or gives an error – failspy Jun 05 '19 at 17:31
  • API version minSdkVersion 16, targetSdkVersion 28 , release apk still not installing . – Asfos22 Jun 06 '19 at 05:10
0

Please check available disk space on the target Android Device before doing any actions. For most of cases it is a due to insuffisant space on the device.

Nehemie KOFFI
  • 816
  • 9
  • 9