react-native 常见错误记录

1.unable to find utility "instruments", not a developer tool or in PATH
解决方法:https://stackoverflow.com/questions/39778607/error-running-react-native-app-from-terminal-ios

2.react-native直接启动闪退,xcode启动正常
解决方法:https://segmentfault.com/q/1010000006892413
https://www.jianshu.com/p/eaa6db792737

3.解决React Native的Image组件中不更新图片的问题
https://blog.csdn.net/u012649246/article/details/52421067

4.Cannot find entry file index.android.js in any of the roots

react-native run-android 能启动成功 但是打包报错
在 ../../node_modules/react-native/react.gradles 文件中 添加

project.ext.react = [
    entryFile: "index.js"
]

然后就可以重新打包了

  1. Installation failed with message Failed to establish session
4770957-6d638c8b0d11a74d.png
65BE5988-455F-4F7C-A7AD-9C63DD369829.png

用Android studio 2.3调度程序时提示“Installation failed with message Failed to establish session”错误,需要在在开发者选项里关闭MIUI优化!

猜你喜欢

转载自blog.csdn.net/weixin_34095889/article/details/87019808
今日推荐