【问题标题】:Unable to load script from assets index.android.bundle on windows react native in vscode [duplicate]无法从 Windows 上的资产 index.android.bundle 加载脚本在 vscode 中做出本机反应 [重复]
【发布时间】:2019-12-10 12:10:49
【问题描述】:

我第一次尝试在我的设备 (Android 9.0.0) 上运行我的第一个 React Native 项目。

【问题讨论】:

  • 你做了什么?你是怎么走到这一步的?您是否更改了任何代码。请提供更多信息
  • 我的数据库项目运行良好,但我不能更改任何代码。

标签: react-native react-native-android


【解决方案1】:
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<uses-permission android:name="android.permission.INTERNET" />
<application
    ...
    android:usesCleartextTraffic="true" . <-- add this line in your manifest file
    ...>
    ...
</application>
</manifest>

删除 android ./build 文件夹并重新运行您的项目

【讨论】:

猜你喜欢
  • 2017-11-10
  • 2018-07-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多