[React Native]this release is not compliant with the google play 64-bit requirement

发布到Google Play报错,提示不支持64位

1. 搜索armeabi-v7a,相应的地方用

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

代替

2. 重新编译后提示:

Compilation is not supported for following modules: 
@react-native-community_async-storage, 
@mapbox_react-native-mapbox-gl, 
lottie-react-native,
react-native-keychain,
react-native-gesture-handler,
react-native-camera,
react-native-location,
react-native-svg,
react-native-localize,
react-native-vector-icons. 
Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

看起来是一些第三方的类库没有明确支持64位。

官方要求0.59.1之后才支持64位系统。

因此你懂的,又掉进了一个大坑。
升级后你的app得全面重测了。

升级React Native

https://facebook.github.io/react-native/docs/upgrading#2-run-the-upgrade-command

  • Android

  • AsyncStorageModule.java: uses or overrides a deprecated API.

Delete node_modules
run npm install or yarn
run npx jetify

Sync project with Gradle files
Migrate to AndroidX
image.png
cd android
rm -rf app/src/main/res/drawable-*/node_modules*
rm -rf app/src/main/res/drawable-*/src_images*
rm app/src/main/res/raw/*.json

参考

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容