The android emulator of react-native version 0.59 cannot connect to the debugging service

After react-native was manually updated to version 0.59, the android emulator set the correct ip address and could not connect to the service.
Refer to the document, because the compiled version of rn's android prompts to 28, you need to configure the network-security-config of debug separately.

Create a debug folder in the src directory
insert image description here
and add react_native_config.xml as shown in the figure, add your local ip address
insert image description here
and add the manifest file.
insert image description here

The debug folder can be directly copied from a new version of the project through init.

Guess you like

Origin blog.csdn.net/github_33420275/article/details/88540488