发布版本时网络请求失败

时间:2020-04-08 11:09:15

标签: android react-native build react-redux native

当我运行react-native run-android时,它将正常工作

然后我需要apk

我运行react-native run-android --variant=release

然后,当我运行apk显示Network request failed

enter image description here

1 个答案:

答案 0 :(得分:0)

在文件<application android:usesCleartextTraffic="true" .....中添加android/app/src/main/AndroidManifest.xml