【问题标题】:Flutter Google Play 64-bit requirement on play storeFlutter Google Play 对 Play 商店的 64 位要求
【发布时间】:2019-12-26 02:35:22
【问题描述】:

我无法在 google play 上上传 apk。 我尝试了一切。我无聊…… 我在这个问题上工作了大约 4 天。 我试试这个解决方案。

1-) 在android项目上添加key.properties

storePassword=pass
keyPassword=pass
keyAlias=xxxx
storeFile=xxxx.jks

在 build.grandle 上添加这一行

defaultConfig{
        ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
    }


 signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
        }
    }
  buildTypes {
        release {
            if (keystorePropertiesFile.exists()) {
                signingConfig signingConfigs.release
                println "Signing with key.properties"
            } else {
                signingConfig signingConfigs.debug
                println "Signing with debug keys"
            }
        }
    }

我尝试从 android studio 获取 apk。在我将捆绑包上传到播放商店之后,我收到了一些错误。 2-) 在 build.grandle 上添加这一行

splits {
        abi {
            enable true
            reset()
            include "armeabi-v7a", "arm64-v8a"
            universalApk false
        }
    }

它也不起作用。

3-) 我在这个 bash 脚本上从颤振 CLI 获得捆绑包

flutter build appbundle --release --target-platform=android-arm64

还是不行。

4-) 我在这个 bash 脚本上从颤振 CLI 获得捆绑包

flutter build apk --split-per-abi

还是不行。

Flutter --version 结果是;

Flutter 1.7.8+hotfix.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 20e59316b8 (5 weeks ago) • 2019-07-18 20:04:33 -0700
Engine • revision fee001c93f
Tools • Dart 2.4.0

Google Play 商店错误是

此版本不符合 google play 64 位要求

【问题讨论】:

  • 上传文件后的错误信息是什么?
  • 它是“此版本不符合 google play 64 位要求”
  • 你试过不指定目标平台吗?在最近的版本中,您不需要指定任何内容,但默认生成 32 位和 64 位。至少,我的应用程序在没有警告的情况下运行。
  • 我的不工作。我尝试了一切,我现在也在尝试......

标签: android android-studio flutter dart google-play


【解决方案1】:
  defaultConfig {
        applicationId "net.example.test"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    signingConfigs {
       release {
           keyAlias keystoreProperties['keyAlias']
           keyPassword keystoreProperties['keyPassword']
           storeFile file(keystoreProperties['storeFile'])
           storePassword keystoreProperties['storePassword']
       }
   }

    buildTypes {
        release {

         signingConfig signingConfigs.release

            minifyEnabled true
            useProguard true

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

这是我的配置,我只是使用flutter build appbundle 来构建项目。另外,从 pubspec.yaml 发布时不要忘记项目的更改版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-02-17
    • 2020-04-07
    • 2019-12-22
    • 1970-01-01
    • 1970-01-01
    • 2020-01-02
    • 2021-07-04
    • 1970-01-01
    相关资源
    最近更新 更多