【问题标题】:64 bit show stopper error for appbundle flutter applicationappbundle 颤振应用程序的 64 位显示停止器错误
【发布时间】:2019-11-03 16:40:03
【问题描述】:

我正在尝试将我们的颤振应用程序发布到 google play 商店,但我收到了似乎是一个显示停止器错误...

错误

此版本不符合 Google Play 64 位要求

以下 APK 或 App Bundle 可用于 64 位设备,但它们只有 32 位本机代码:3.

在您的应用中包含 64 位和 32 位本机代码。使用 Android App Bundle 发布格式自动确保每个设备架构只接收它需要的本机代码。这样可以避免增加应用程序的整体大小。 Learn More

有谁知道如何解决这个问题?当我用谷歌搜索这个错误时,我什么也没看到。我们只是在尝试进行封闭式 Alpha 测试。

【问题讨论】:

  • 您是否阅读了“了解更多”链接之后的页面?它应该包含您需要的所有信息。
  • 是的,我已经尝试了所有我能找到的建议.. 出现同样的错误
  • 了解更多部分不是基于颤振的信息
  • 那么您的 APK 中有哪些 ABI?你使用 ndkFilters 吗?

标签: flutter dart google-play-console


【解决方案1】:

我终于可以通过将它添加到 build.gradle 来解决这个问题

  ndk {
        abiFilters  "armeabi-v7a", "arm64-v8a"
    }
}

splits {
    abi {
        include  "armeabi-v7a", "arm64-v8a"
    }
 }
 applicationVariants.all { variant ->
    variant.outputs.each { output ->
        // For each separate APK per architecture, set a unique version code as described here:
        // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
        def versionCodes = ["armeabi-v7a":1, "arm64-v8a":2]
        def abi = output.getFilter(OutputFile.ABI)
        if (abi != null) {  // null for the universal-debug, universal-release variants
            output.versionCodeOverride =
                    versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
        }
    }
 }

【讨论】:

  • 不,实际上它是几个月前在这个网站上的一个帖子
猜你喜欢
  • 2019-06-19
  • 1970-01-01
  • 1970-01-01
  • 2021-03-20
  • 2020-04-08
  • 2020-10-29
  • 1970-01-01
  • 2020-11-29
相关资源
最近更新 更多