小编nic*_*ckt的帖子

flutter 在发布模式下构建 appbundle

我已经使用 android studio 在 flutter 中构建了一个应用程序,并尝试在 Play 商店上发布它。

根据https://flutter.dev/docs/deployment/android#reviewing-the-build-configuration,“运行flutter build appbundle(运行 flutter 构建默认为发布版本。)” 在此输入图像描述 在此输入图像描述

但是,当我尝试在 Play 控制台上上传此文件时,收到错误消息:“您上传了在调试模式下签名的 APK 或 Android 应用程序包。您需要在发布模式下签署您的 APK 或 Android 应用程序包。” 在此输入图像描述

我应该采取什么不同的做法?

从我的 gradle.build 中:


def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
    compileSdkVersion 29

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.rtterror.custom_snooze_alarm"
        minSdkVersion 16
        targetSdkVersion 29
        versionCode …
Run Code Online (Sandbox Code Playgroud)

android google-play android-studio flutter

30
推荐指数
3
解决办法
6万
查看次数

标签 统计

android ×1

android-studio ×1

flutter ×1

google-play ×1