You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native 0.54.3安卓APK传Google Play遇64位报错及更新可行性咨询

Hey there, let's break down your problem with the Google Play 64-bit requirement for your React Native 0.54.3 app.

Can you update your RN 0.54.3 APK to Google Play?

The short answer is no—not in its current state. Google Play has required all app updates to support 64-bit architectures since August 2020. If your APK only includes 32-bit (armeabi-v7a) binaries, it will get rejected during upload. You need to adjust your build to include 64-bit support first.

How to Fix the 64-bit Rejection

React Native 0.54.3 is a pretty old version (pre-0.59, which was the first version to default to 64-bit support), so you'll need to manually configure your Android project to meet the requirement. Here's what to do:

1. Update your app's build.gradle configuration

Open your android/app/build.gradle file and make these changes:

  • In the defaultConfig block, add an ndk section to specify supported ABIs, including 64-bit:
    android {
      ...
      defaultConfig {
        ...
        ndk {
          abiFilters "armeabi-v7a", "arm64-v8a"
        }
      }
    }
    
  • If you're using APK splits (to reduce file size), ensure your splits block includes the 64-bit ABI:
    splits {
      abi {
        enable true
        reset()
        include "armeabi-v7a", "arm64-v8a"
        universalApk true // Optional: Generates a universal APK with all ABIs
      }
    }
    

2. Audit third-party native dependencies

A common gotcha with old RN versions is that some third-party libraries might only provide 32-bit .so files. You'll need to:

  • Check each native module you're using (either from npm or local modules) to confirm they include arm64-v8a binaries.
  • If a library lacks 64-bit support, try updating it to the latest compatible version. If no update exists, consider replacing it with an alternative library that supports 64-bit, or compile the library yourself for 64-bit architectures.

3. Upgrade Android Gradle Plugin (AGP) and Gradle (if necessary)

RN 0.54.3 typically uses AGP 2.x, which has limited 64-bit support. To avoid build issues, upgrade to a compatible AGP version (e.g., 3.1.4) and matching Gradle version (e.g., 4.4):

  • In android/build.gradle, update the AGP classpath:
    buildscript {
      dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
      }
    }
    
  • In android/gradle/wrapper/gradle-wrapper.properties, update the Gradle distribution URL:
    distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
    

Note: Upgrading AGP might require adjusting other settings like compileSdkVersion (try setting it to 26 or higher) to match the plugin's requirements.

4. Verify your APK includes 64-bit architectures

After building your release APK with ./gradlew assembleRelease, confirm it has 64-bit support using the aapt tool:

aapt dump badging app/build/outputs/apk/release/app-release.apk | grep "native-code"

You should see output like native-code: 'armeabi-v7a' 'arm64-v8a'—this confirms 64-bit support is present.

Final Note

Once you've successfully built an APK that includes both 32-bit and 64-bit architectures, you'll be able to upload the update to Google Play without the rejection error. Just make sure all your dependencies are properly updated or replaced to support 64-bit.

内容的提问来源于stack exchange,提问作者Angu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 08:46:37