【问题标题】:Flutter app release is not compliant with the Google Play 64-bit requirement?Flutter 应用发布不符合 Google Play 64 位要求?
【发布时间】:2021-07-04 15:43:39
【问题描述】:

我正在尝试以封闭测试模式发布应用程序包,但我不断收到此错误:

我也试过上传release apk,但还是一样的错误

我尝试按照错误末尾的 了解更多 链接,但它似乎唯一要说的是确保有 arm64-v8a 或 x86_64 库,打开 apk 使用android studio 中的分析工具,似乎有可用于 arm64-v8a 或 x86_64 的库

这是应用级别 build.gradle 中配置设置的外观:

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.xyz.xyzapp"
        minSdkVersion 23
        targetSdkVersion 29
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        // Use code below for production build
        // For debug mode you need to comment above lines of code
        // Issue with 'libflutter.so'
        ndk {
            abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86'
        }
    }
    signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
            storePassword keystoreProperties['storePassword']
        }
    }
    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.release
        }
    }
}

如何使应用符合 Google Play 64 位要求。

谢谢 问候

【问题讨论】:

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


    【解决方案1】:

    尝试将此添加到您的 build.gradle:

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

    【讨论】:

      猜你喜欢
      • 2019-12-22
      • 1970-01-01
      • 2019-12-11
      • 2019-12-26
      • 2021-01-17
      • 2019-09-25
      • 1970-01-01
      • 2021-04-18
      • 1970-01-01
      相关资源
      最近更新 更多