0

When i run react-native run-android the apps launch in my devices but gives he following error enter image description here

I've tried the solve the problem using the folling links:

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

Unable to load script from assets index.android.bundle on windows

But,i the problem is not solved.Before i tried to use as described in the official doc from : Running On Device Nothings works for me,even after rebooting the pc which is running Windows 10

Christian LSANGOLA
  • 2,947
  • 4
  • 22
  • 36

1 Answers1

0

Try to exit from Node Packager CMD and stop all running CMD. Open new CMD in run as admin. Uninstall app from device. Again go to your project folder and do 'react-native run-android'.

Akila Devinda
  • 5,054
  • 3
  • 19
  • 35
  • I've done what you've said and nowi got this `error: bundling failed: Error: Unable to resolve module `AccessibilityInfo` from `E:\AgamesChristian\react-native\model\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map` – Christian LSANGOLA Jul 24 '18 at 11:38
  • Under the above error it gives this: `This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`. 3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.` – Christian LSANGOLA Jul 24 '18 at 11:39
  • Try 'npm cache clean --force' – Akila Devinda Jul 24 '18 at 11:45
  • Not always rendering – Christian LSANGOLA Jul 24 '18 at 12:07