Metro server (run ‘react-native start‘) or that your bundle ‘index.android.bundle‘ is packaged corre
Posted cj_286
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Metro server (run ‘react-native start‘) or that your bundle ‘index.android.bundle‘ is packaged corre相关的知识,希望对你有一定的参考价值。
React Native 运行或打包时报如下错误:
java.lang.RuntimeException: Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
解决办法:
在app/build.gradle添加如下代码
project.ext.react = [
enableHermes: false, // clean and rebuild if changing
bundleAssetName:"index.android.bundle",
bundleInDebug:true,
bundleInAlpha:true,
bundleInBeta:true,
]
以上是关于Metro server (run ‘react-native start‘) or that your bundle ‘index.android.bundle‘ is packaged corre的主要内容,如果未能解决你的问题,请参考以下文章
Metro server (run ‘react-native start‘) or that your bundle ‘index.android.bundle‘ is packaged corre
Metro server (run ‘react-native start‘) or that your bundle ‘index.android.bundle‘ is packaged corre
Unable to load script.Make sure you‘re either running a metro server( run ‘react-native start‘
react-native启动时红屏报错:Unable to load script.Make sure you're either running a metro server or that
Node升级 启动RN报错:react-native启动时红屏报错:Unable to load script.Make sure you're either running a metro