React Native:此版本不符合Google Play 64位要求

时间:2019-09-24 09:10:14

标签: android react-native google-play react-native-android

当我在React Native App中发布Google Play时,出现此错误:

  

此版本不符合Google Play 64位要求

     

以下APK或应用捆绑包可用于64位设备,但它们只有32位本机代码:9和24。

     

在您的应用程序中包含64位和32位本机代码。使用Android App Bundle发布格式自动确保每种设备架构仅接收所需的本机代码。这样可以避免增加应用程序的整体大小。

enter image description here

如何解决此错误?

2 个答案:

答案 0 :(得分:1)

您需要将以下内容添加到android/app/build.gradle文件中:

abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"

具体来说,您需要为列表中已有的32位ABI添加64位ABI。

答案 1 :(得分:0)

React Native将为Android版本0.59开始支持64位

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