Solved: Unable to load script from assets ‘’

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 and

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/ --assets-dest android/app/src/main/res

NOTE: That is one single command.

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

react-native bundle --platform android --dev false --entry-file --bundle-output android/app/src/main/assets/ --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 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