Solved: Unable to load script from assets ‘index.android.bundle’

Aditya Singh
Oct 15, 2018 · 1 min read

Lets fix this error, once and for all!

Follow this

  1. Go to your project directory and check if this folder exists android/app/src/main/assets

i) If it exists then delete two files viz index.android.bundle and index.android.bundle.meta

ii) If the folder assets doesn’t exist then create the assets directory there.

2. From your root project directory do

cd android
./gradlew clean

3. Finally, navigate back to the root directory and check

i) If there is only one file i.e. index.js then run following command

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

NOTE: That is one single command.

ii) If there are two files i.e index.android.js and index.ios.js then run this

react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

This is a single command too!

4. Now run react-native run-android


I work as full stack developer at Morfsys. Hit me up with anything on aditya@morfsys.com

Aditya Singh

Written by

Javascript develover | Coffee | 420 | Beer

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade