'flutter run' certificate issue

396 views
Skip to first unread message

Stefan Muke

unread,
Jun 7, 2016, 6:09:12 PM6/7/16
to Flutter Dev
Hey,

I have been running into the following issue recently:
Every time I execute 'flutter run' in the project folder, I get this output. I already tried to renew debug.keychain in the .android folder and I tried to self-sign the apk via jarsigner, but nothing solved the issue, I still get the same output.
Does anyone know how to solve this problem? Is there for instance a way to pass in a custom certificate in the 'flutter run' process?

Thanks in advance,
Stefan

Adam Barth

unread,
Jun 7, 2016, 6:42:30 PM6/7/16
to Stefan Muke, Flutter Dev
I wonder if we need to pass "-sigalg MD5withRSA -digestalg SHA1" to jarsigner:

http://stackoverflow.com/questions/2914105/android-what-is-install-parse-failed-no-certificates-error

Would you be willing to create an issue?  We can followup there.


Adam


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stefan Muke

unread,
Jun 8, 2016, 11:27:01 AM6/8/16
to Flutter Dev
Done, sorry I took me so long to reply. You can find the issue here: https://github.com/flutter/flutter/issues/4450

Btw, 1033 open issues?! :D It maay be more convenient to close the older ones to improve the overview ;)

Thanks,
Stefan

Adam Barth

unread,
Jun 8, 2016, 12:31:46 PM6/8/16
to Stefan Muke, Flutter Dev
On Wed, Jun 8, 2016 at 8:27 AM Stefan Muke <stefa...@gmail.com> wrote:
Done, sorry I took me so long to reply. You can find the issue here: https://github.com/flutter/flutter/issues/4450

Thanks!

Btw, 1033 open issues?! :D It maay be more convenient to close the older ones to improve the overview ;)

If it makes you feel better, I suspect there are many more undiscovered bugs that aren't yet listed in the issue tracker.  :)

Adam

parn...@gmail.com

unread,
Sep 10, 2016, 12:22:21 AM9/10/16
to Flutter Dev

I had the same issue on Debian.
jdk1.8.0_11
adt-bundle-linux-x86_64-20140321
=> INSTALL_PARSE_FAILED_NO_CERTIFICATES

this is what I have done:

  • edit ~/flutter/packages/flutter_tools/lib/src/commands/build_apk.dart

  • add sigalg et digestalg to jarsigner (as suggested in http://stackoverflow.com/questions/2914105/android-what-is-install-parse-failed-no-certificates-error)

    void sign(File keystore, String keystorePassword, String keyAlias, String keyPassword, File outputApk) {
    assert(_jarsigner != null);
    runCheckedSync([_jarsigner.path,
    '-keystore', keystore.path,
    '-storepass', keystorePassword,
    '-keypass', keyPassword,
    '-sigalg', 'MD5withRSA',
    '-digestalg', 'SHA1',
    outputApk.path,
    keyAlias,
    ]);
    }

  • remove ~/flutter/bin/cache/flutter_tools.snapshot

  • and run again
    $ flutter build clean
    $ flutter -v run

Reply all
Reply to author
Forward
0 new messages