Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

64 bit version issue in react-native android app by google play store

According to https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html:

In August 2019, Play store will require that new apps and app updates with native libraries provide 64-bit versions in addition to their 32-bit versions.

I have a React Native application (which includes native code). My question is how can I know whether a third party library I'm using or even my own code is not supporting 64-bit? And how can I fix it?

Update

I added x86_64 to my build.gradle and I now see the x86_64 folder in the apk but I think some of the files are missing.

Here is, how my x86 folder looks like:

enter image description here

And here is how my x86_64 folder looks like:

enter image description here

like image 608
neomib Avatar asked Feb 11 '18 14:02

neomib


People also ask

Does React Native support 64-bit?

As of March 12, 2019, React Native has a new version release 0.59. You can read the React Native 0.59 release notes here. Yes, they added hooks, but the important thing here is 64-bit support on Android. Sooo, the first and only step that you need to do is to update you React Native version to 0.59 or higher.

What version of Android does React Native support?

React Native requires Android 6.0 (Marshmallow) SDK or higher. We recommend using the latest SDK.

How do I know if my Android app is 64-bit?

The simplest way to check for 64-bit libraries is to inspect the structure of your APK file. When built, the APK will be packaged with any native libraries needed by the app. Native libraries are stored in various folders based on the ABI.


2 Answers

React Native will support 64 bit for android starting version 0.59

https://github.com/facebook/react-native/issues/2814#issuecomment-457688789

https://github.com/facebook/react-native/commit/f3e5cce4745c0ad9a5c697be772757a03e15edc5

like image 103
gamingumar Avatar answered Sep 27 '22 22:09

gamingumar


All of the native code for an app is stored in the libs/ directory in the root of the apk. eg for compiled ARM or x86 code, you can find it in libs/architecture_type/lib_name.so.

An APK is essentially just a zip file so you can extract it with any zip tool.

The list of architectures (ABIs) is here. If you don't have directories for arm64-v8a or have x86 but don't have x86_64 then you are missing the 64 bit native code.

like image 28
Nick Fortescue Avatar answered Sep 27 '22 21:09

Nick Fortescue