[React Native]this release is no
2020-02-03 本文已影响0人
猎手Andy
发布到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