ReactNative和Android:64位,创建64位APK而不更新react本机版本?

时间:2019-09-22 13:23:21

标签: android reactjs react-native apk 64-bit

我当前的项目react native version0.52.3

但是现在我需要创建一个64 bit APK。所以我在下面找到了一个很棒的博客链接。

https://medium.com/@andriidrozdov/reactnative-and-android-64-bit-new-google-play-market-rules-what-to-do-584b067d6f1a

我可以更新Gradle,但是更新react native version会导致third party libraries崩溃。

反正我可以在不更新64 bit APK的情况下创建react native version吗?

1 个答案:

答案 0 :(得分:2)

您必须将应用更新到用于构建64位APK的0.59版。

我了解react native version使用了哪些文件更改。这是噩梦:)。现在,React具有有用的工具,可帮助您更轻松地更新应用程序。是upgrade-helper

所以这是逐步的:

首先查看发行说明以显示每个版本的React的中断更改

然后使用此upgrade-helper升级版本。

Note that upgrade bit by bit (increase the version slowly). Remove node_modules then reinstall it when you put the new version in package.json. 

希望这对您有帮助。

相关问题