Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 788
Boopathi kumar Avatar asked May 03 '19 07:05

Boopathi kumar


People also ask

How do I add native code to Expo?

The tradeoff is that Expo Go does not allow you to add custom native code, you can only use native modules built into the Expo SDK. There are many great libraries available outside of the Expo SDK, and you may even want to build your own native library.

Can I use React Native code in Expo?

With Expo, you can build and deploy React Native apps for both iOS and Android with ease. With Expo, you will never touch any native iOS or native Android code. This means, you don't need developers to know any native mobile coding while building apps using Expo.

How do I create Reacto native app using Expo?

Running your React Native applicationInstall the Expo Go app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo Go app to scan the QR code from your terminal to open your project. On iOS, use the built-in QR code scanner of the default iOS Camera app.

Is Expo Better than React Native cli?

It helps you from the creation to distribution of your React Native apps. Remember, when you are coding in Expo, you still write React Native code. But with the support of the Expo CLI and Expo Client on your smartphone. It is better to use Expo CLI if you are new to app development.


3 Answers

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"
  }
}
like image 115
Ziyo Avatar answered Oct 12 '22 00:10

Ziyo


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 ;)

like image 35
awsmsce Avatar answered Oct 12 '22 00:10

awsmsce


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

like image 25
Li Yuhao Avatar answered Oct 12 '22 01:10

Li Yuhao