keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias mykey
のコマンドでやった。
keytool -genkey -v -keystore my-release-key.jks
はダメだった・・。
さもないとこっちのエラーでた。
flutter build apk 2059ms 日 11/18 14:06:06 2018 Initializing gradle... 1.8s Resolving dependencies... 1.6s Gradle task 'assembleRelease'... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:packageRelease'. > Failed to generate v1 signature * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 4s