發(fā)布到Google Play報(bào)錯(cuò)吨岭,提示不支持64位
1. 搜索armeabi-v7a
侵浸,相應(yīng)的地方用
"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.
看起來(lái)是一些第三方的類庫(kù)沒(méi)有明確支持64位蟆技。
官方要求0.59.1之后才支持64位系統(tǒng)蓖乘。
因此你懂的只盹,又掉進(jìn)了一個(gè)大坑。
升級(jí)后你的app得全面重測(cè)了驼侠。
升級(jí)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
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