Closed Dabbit-Chan closed 7 months ago
就算我直接yarn start
然后在弹出来的metro terminal里输入a - run on android
,运行起来后也是同样的错误。然后再输入r - reload app
也一样会提示No apps connected. Sending "reload" to all React Native apps failed.
找到原因:openSSL的问题以及8081端口被屏蔽了
解决方法:在package.json
里的scripts
里的android
和ios
前都加上set NODE_OPTIONS=--openssl-legacy-provider &&
并在后面加上自定义端口号--port=1234
如图,我执行了yarn android后app成功运行起来的,但是显示这个,不知道是什么问题