码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2018-02-02 11:43:25      阅读:751      评论:0      收藏:0      [点我收藏+]

标签:entry   tps   false   解决   question   project   direct   native   androi   

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'.

标签:entry   tps   false   解决   question   project   direct   native   androi   

原文地址:https://www.cnblogs.com/fphuang/p/8403639.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!