Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行问题请看 #50

Open
CarGuo opened this issue Sep 18, 2018 · 18 comments
Open

运行问题请看 #50

CarGuo opened this issue Sep 18, 2018 · 18 comments

Comments

@CarGuo
Copy link
Owner

CarGuo commented Sep 18, 2018

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

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

@fantasy525
Copy link

请问升级到哪个版本

@CarGuo
Copy link
Owner Author

CarGuo commented Oct 2, 2018

java8 最新版本就可以

@hgt803
Copy link

hgt803 commented Nov 16, 2018

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

@CarGuo
Copy link
Owner Author

CarGuo commented Nov 16, 2018

@hgt803 你运行java -verison看看实际版本号,至于具体可以看 facebook/react-native#21121

@hgt803
Copy link

hgt803 commented Nov 16, 2018

javac 1.8.0_192也不行

@CarGuo
Copy link
Owner Author

CarGuo commented Nov 16, 2018

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

@hgt803
Copy link

hgt803 commented Nov 16, 2018

好的。

@hgt803
Copy link

hgt803 commented Nov 16, 2018

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

@LinMaris
Copy link

LinMaris commented Jan 4, 2019

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

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

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

@CarGuo CarGuo pinned this issue Jun 13, 2019
@x2201783
Copy link

x2201783 commented Dec 2, 2019

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

@CarGuo
Copy link
Owner Author

CarGuo commented Dec 2, 2019

什么型号,这么诡异?

@x2201783
Copy link

x2201783 commented Dec 2, 2019

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

@x2201783
Copy link

x2201783 commented Dec 2, 2019

什么型号,这么诡异?

android accelerated oreo

@x2201783
Copy link

x2201783 commented Dec 4, 2019

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

@flybrotheryao
Copy link

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")

@zhangxu1123
Copy link

报错,完全不认识
image

image

@Coder108
Copy link

报错,完全不认识
图片

图片

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

@CarGuo
Copy link
Owner Author

CarGuo commented Apr 24, 2020

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants