gpt4 book ai didi

google-play - 使用FaSTLane上传虚幻应用程序时,“发行不符合Play 64位要求”

转载 作者:行者123 更新时间:2023-12-02 09:42:46 48 4
gpt4 key购买 nike

尝试使用FaSTLane将版本从Unreal Engine 4.22上载到Google Play时,会导致严重的消息“发行版不符合Play 64位要求”。

我首先要做的是在虚幻引擎(移动目标)上创建一个项目,而不添加任何内容。我添加了签名信息,构建,打包...,并实质上获得了三个文件:

  • app-Android-Shipping-arm64-es2.apk
  • app-Android-Shipping-armv7-es2.apk
  • main.1.com.redacted.myapp.obb

  • 手动将这三个文件上传到Google Play可以得到预期的结论:准备部署的新版本。

    但是,使用以下配置(faSTLane 2.133.0)调用 bundle exec fastlane deploy:
    lane :deploy do
    upload_to_play_store(
    package_name: 'com.redacted.myapp',
    track: 'internal',
    json_key: "my_redacted_google_key_file.json",
    apk_paths: ["dist/app-Android-Shipping-armv7-es2.apk", "dist/app-Android-Shipping-arm64-es2.apk"]
    )
    end

    总是以错误结束: [!] Google Api Error: releaseValidationErrorKeyNotCompliantWith64BitRequirementError: Release is not compliant with the Play 64-bit requirement. - Release is not compliant with the Play 64-bit requirement.
    我究竟做错了什么?

    最佳答案

    按照此处https://developer.android.com/distribute/best-practices/develop/64-bit的说明,我将我的应用程序build.gradle更改为:

    android {
    ...

    defaultConfig {
    ...
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode VERSION_BUILD
    versionName VERSION_MAJOR + "." + VERSION_MINOR + "." + VERSION_PATCH
    ndk {
    abiFilters 'armeabi-v7a','x86'
    }
    }
    }

    至:
    android {
    ...

    defaultConfig {
    ...
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode VERSION_BUILD
    versionName VERSION_MAJOR + "." + VERSION_MINOR + "." + VERSION_PATCH
    ndk {
    abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
    }
    }
    }

    然后运行 fastlane android beta就可以了。我还没有尝试过全面部署,但是只能假设它在此阶段会很好,因为我没有收到该错误,并且播放控制台显示:

    Google Play

    关于google-play - 使用FaSTLane上传虚幻应用程序时,“发行不符合Play 64位要求”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58342910/

    48 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com