简体   繁体   中英

How to Build 64-bit native code for android using Expo CLI

I am using react-native and EXPO CLI to build the android apk file. But i cant upload to Play store. I get a warning message

Warning This release is not compliant with the Google Play 64-bit requirement

The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 1.

From August 1, 2019 all releases must be compliant with the Google Play 64-bit requirement.

Versions that I am using

 "dependencies": { "expo": "^32.0.0", "prop-types": "^15.7.2", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", "react-navigation": "^3.4.1" }, "devDependencies": { "babel-preset-expo": "^5.0.0" }, 

Help me out to build app bundle as per Google Play 64-bit requirement.

It's not here yet. That's the answer. https://blog.expo.io/expo-sdk-v33-0-0-is-now-available-52d1c99dfe4c

We recommend that all Expo developers with Android apps upgrade to SDK 33 now to front-load most of the work required for creating 64-bit APKs, coming in SDK 34, and necessary to submit to Google Play in August.

I assume that after the massive changes between 32 and 33, they wanted to split it into 2 separate releases. So, let's assume we'll get the v34 sdk in late July ;)

For non-Expo projects above version 0.59 , check your android/app/build.gradle . If you have ndk set in defaultConfig , make sure it contains all architectures abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64" .

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

Any follow up from expo? It's already the end of may

The most recent information I could find during the deployment of my app says that expo doesn't produce 64-bit binaries:

My understanding is that react-native 0.59 will support 64-bit versions (currently at “release candidate” stage). Expo 32 is at react-native 0.57, I believe.

So far we don't provide 64 bit binaries, but this is on our roadmap and I can promise we will add such feature before this deadline

However, this shouldn't prevent you from deploying your app as the requirement doesn't come into effect until August.

升级到Expo SDK 33后,我最新的Android版本(7月15日)确认为64位:

Native platforms: arm64-v8a, armeabi-v7a, x86, x86_64

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM