无法加载脚本。确保您正在运行 Metro
无法加载脚本。确保您要么运行Metro(运行'NPX React-native启动'),要么正确打包了您的捆绑包'index.android.bundle'以释放。屏幕截图
我在Windows中运行React Native应用程序时面对这一点,使用Android Studio,我已经连接了我的真实设备,以通过Android Studio 请帮助
Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.SCREEN SHOT
I facing this while running a react native app in windows, using android studio, I have connected my real device for running that usb via android studio PLEASE HELP
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我按照以下步骤操作
第一步:安装纱线
第二步:
项目文件夹内的
npx react-native start第三步:yarn start
第四步:npx react-native run-android
还更新 android Studio 中的 gradles
I followed these steps
1st step : yarn install
2nd step : npx react-native start
inside project folder
3rd step : yarn start
4th step : npx react-native run-android
also update gradles in android Studio
在物理设备上运行时,您通常需要运行 adb 命令:
这将允许您的设备与 Metro 实例进行通信。
When running on a physical device you will often need to run the adb command:
This will allow your device to communicate with the Metro instance.