1.强制替换react-native版本
打开 android/app/build.gradle 将
compile "com.facebook.react:react-native:+"
尾部的"+"号 替换成 "0.54.4", 强制指定编译版本, OK!
如果还是不行, 就用如下格式:compile ("com.facebook.react:react-native:xx.xx.xx") { force = true }
2.React Native:The development server returned response error code: 404,这个也是react-native版本的问题。
3.React Native Could not expand ZIP
cd android && gradlew clean && cd .. && react-native run-android
本文介绍了如何通过修改Gradle配置文件来强制指定React Native版本,解决因版本不匹配导致的404错误及ZIP文件无法解压等问题。

4009

被折叠的 条评论
为什么被折叠?



