【问题标题】:Which Keystore was Used to Build a Release APK in Flutter?在 Flutter 中使用哪个 Keystore 构建发布 APK?
【发布时间】:2019-10-23 16:06:58
【问题描述】:

我创建了一个新的 Flutter 项目并构建了一个发布 APK flutter build apk,但没有创建发布 Android 密钥库。

Flutter 默认使用哪个 keystore 来构建发布 APK?

【问题讨论】:

标签: android flutter apk


【解决方案1】:

我刚刚从 Android 应用 Gradle 中找到了答案。

Flutter 默认使用 调试密钥 对发布版本进行签名。

android/app/build.gradle 中的这行 cmets 非常不言自明。

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-05
    • 2020-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-08
    相关资源
    最近更新 更多