GSYGithubAPP icon indicating copy to clipboard operation
GSYGithubAPP copied to clipboard

运行问题请看

Open CarGuo opened this issue 7 years ago • 18 comments

目前是0.57.0版本,你可以会面临的运行问题

https://github.com/facebook/react-native/issues/21121 : 升级你的JDK可解决。升级完之后请关闭所有cmd窗口,再重新启动运行

CarGuo avatar Sep 18 '18 01:09 CarGuo

请问升级到哪个版本

fantasy525 avatar Oct 01 '18 16:10 fantasy525

java8 最新版本就可以

CarGuo avatar Oct 02 '18 08:10 CarGuo

/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home 跑不起来

hgt803 avatar Nov 16 '18 02:11 hgt803

@hgt803 你运行java -verison看看实际版本号,至于具体可以看 https://github.com/facebook/react-native/issues/21121

CarGuo avatar Nov 16 '18 03:11 CarGuo

javac 1.8.0_192也不行

hgt803 avatar Nov 16 '18 03:11 hgt803

@hgt803 具体什么错误你看着官方issue走就好了

CarGuo avatar Nov 16 '18 03:11 CarGuo

好的。

hgt803 avatar Nov 16 '18 03:11 hgt803

i fix it by yarn add [email protected], [email protected] can't work

hgt803 avatar Nov 16 '18 03:11 hgt803

我运行了在 iOS 模拟器上, 踩了一些新坑.

  1. 目前 RN 仅支持 node11 以下. 否则会报download(404)... 的错误. 我安装的是 node10(10.15.0), 如何安装指定版本的node, 看这里.

  2. 建议用 Terminal 运行, react-native run-ios, 中间会花点时间下载 realm 库. 如果你和我一样喜欢用 Xcode 直接运行的话(其实都一样), 可能会报 main.jsbundle 找不到的错误, 如何生成 main.jsbundle, 看这里.

LinMaris avatar Jan 04 '19 15:01 LinMaris

Pasted Graphic 安卓是这个样子,是不是什么样式库丢失了

x2201783 avatar Dec 02 '19 10:12 x2201783

什么型号,这么诡异?

CarGuo avatar Dec 02 '19 10:12 CarGuo

react-native run-ios 报错,node9.8.0 ,npm:6.13.1, react-native-cli: 2.0.1 react-native: 0.61.3 error

x2201783 avatar Dec 02 '19 10:12 x2201783

什么型号,这么诡异?

android accelerated oreo

x2201783 avatar Dec 02 '19 10:12 x2201783

是不是 run-ios不行啊,我用cocoapods安装,然后用xcode打开是可以

x2201783 avatar Dec 04 '19 04:12 x2201783

Showing All Errors Only /Users/mryao/Desktop/react-native/GSYGithubAPP/ios/Pods/Target Support Files/Pods-GSYGithubApp/Pods-GSYGithubApp.debug.xcconfig: unable to open file (in target "GSYGithubApp" in project "GSYGithubApp")

flybrotheryao avatar Dec 11 '19 08:12 flybrotheryao

报错,完全不认识 image

image

zhangxu1123 avatar Dec 24 '19 09:12 zhangxu1123

报错,完全不认识 图片

图片

我也是有这个问题,请问解决了吗?

Coder108 avatar Apr 23 '20 10:04 Coder108

$ npm --version 6.4.1 $ node --version v10.13.0 $ react-native --version react-native-cli: 2.0.1 react-native: n/a - not inside a React Native project directory

CarGuo avatar Apr 24 '20 06:04 CarGuo