[React-Native] Unable to load script from assets 'index.android.bundle'.

Posted 信息学奥赛NOIP辅导

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[React-Native] Unable to load script from assets 'index.android.bundle'.相关的知识,希望对你有一定的参考价值。

react native for android 抛出下面异常,解决方法:

java.lang.RuntimeException: Unable to load script from assets ‘index.android.bundle‘.

 

 

https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows

  1. (in project directory) mkdir android/app/src/main/assets
  2. react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
  3. react-native run-android

以上是关于[React-Native] Unable to load script from assets 'index.android.bundle'.的主要内容,如果未能解决你的问题,请参考以下文章

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

unable to load script from assets 'index.android bundle'

Nacos 启动报错 Unable to start web server……Unable to start embedded Tomcat

idea 不能创建类啥原因 unable to parse template class