Detox icon indicating copy to clipboard operation
Detox copied to clipboard

Android on first app installation - facebook::react::Recoverable: Could not open file/data/user/0/com.detoxtesting/files/ReactNativeDevBundle.js: No such file or directory

Open nadzic opened this issue 8 years ago • 4 comments

Description

After I first run the app via react-native run-android or detox build -c android.emu.debug && detox test -c android.emu.debug and click on screen I get red screen and the following error:

facebook::react::Recoverable: Could not open file/data/user/0/com.detoxtesting/files/ReactNativeDevBundle.js: No such file or directory

Try the following to fix the issue: • Ensure that the packager server is running • Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices • Ensure Airplane Mode is disabled • If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device • If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081

facebook::react::Recoverable: Could not open file/data/user/0/com.detoxtesting/files/ReactNativeDevBundle.js: No such file or directory
loadScript
    JSBundleLoader.java:77
runJSBundle
    CatalystInstanceImpl.java:234
createReactContext
    ReactInstanceManager.java:1137
access$900
    ReactInstanceManager.java:113
run
    ReactInstanceManager.java:944
run
    Thread.java:761

If I restart app via simulator then app works, but the tests does not run. iOS build and tests work normally.

Steps to Reproduce

Run app and click on screen.

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 9.0.4
  • React Native: 0.52
  • Node: 8.6.0
  • Device: Nexus 5X API 25
  • Xcode: 9.4
  • macOS: 10.13.6

Device and verbose Detox logs

facebook::react::Recoverable: Could not open file/data/user/0/com.detoxtesting/files/ReactNativeDevBundle.js: No such file or directory

Try the following to fix the issue:
• Ensure that the packager server is running
• Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices
• Ensure Airplane Mode is disabled
• If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device
• If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081



facebook::react::Recoverable: Could not open file/data/user/0/com.detoxtesting/files/ReactNativeDevBundle.js: No such file or directory
loadScript
    JSBundleLoader.java:77
runJSBundle
    CatalystInstanceImpl.java:234
createReactContext
    ReactInstanceManager.java:1137
access$900
    ReactInstanceManager.java:113
run
    ReactInstanceManager.java:944
run
    Thread.java:761

nadzic avatar Oct 17 '18 12:10 nadzic

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Nov 26 '18 10:11 stale[bot]

Is this issue related to detox? Seems like a React Native configuration issue

rotemmiz avatar Nov 26 '18 21:11 rotemmiz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Dec 27 '18 01:12 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jan 03 '19 12:01 stale[bot]