我正在使用react native开发Android应用程序。 并使用点燃。
但是当我在android studio中运行我的项目进行模拟时,程序突然关闭了。
错误,它是那种网络(也许),但我不知道如何解决它。
下面的是我的模拟器的logcat。
感谢
W/unknown:ReactNative: The packager does not seem to be running as we got an IOException requesting its status: failed to connect to /10.0.2.2 (port 8081) after 5000ms
W/unknown:InspectorPackagerConnection: Couldn't connect to packager, will silently retry
W/unknown:ReconnectingWebSocket: Couldn't connect to "ws://10.0.2.2:8081/message?device=Android%20SDK%20built%20for%20x86%20-%206.0%20-
%20API%2023&app=com.earlierdoctor.hospital6&clientid=DevSupportManagerImpl", will silently retry
I/Process: Sending signal. PID: 4859 SIG: 9
Application terminated.
答案 0 :(得分:0)
您的打包程序似乎没有运行,尝试导航到您的项目目录并在尝试运行该应用程序之前运行react-native start
。