3

I am trying to run apk file on the device using flutter install. The following error displays

Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install F:\...\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES:Failed to collect certificates from /data/app/vmdl619719557.tmp/base.apk: Attempt to get length of null array]
Install failed

How can I collect certificates?

G H Prakash
  • 1,720
  • 10
  • 30
  • This might help you : https://stackoverflow.com/questions/2914105/what-is-install-parse-failed-no-certificates-error – Hardik Mehta Feb 02 '22 at 10:29

2 Answers2

8

I had the same error and I solved it by addind signing config in app/build.gradle the code looks like below for debug mode:

    buildTypes {
    release {
        signingConfig signingConfigs.debug
    }
}
Poshan Pandey
  • 106
  • 1
  • 3
2

I had the same error and able to fix it in this way:

  1. uninstall the old application
  2. clean the project
  3. run and reinstall it again

if this not works, try signing the apk.

Sobin Benny
  • 181
  • 1
  • 8