-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
Environment
React Native Environment Info:
System:
OS: Windows 8.1
CPU: x64 Intel(R) Core(TM) i3-3217U CPU @ 1.80GHz
Memory: 1.66 GB / 3.90 GB
Binaries:
Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.3.0 - C:\Program Files\nodejs\npm.CMD
Watchman: 4.9.4 - C:\Windows\system32\watchman.EXE
IDEs:
Android Studio: Version 3.1.0.0 AI-173.4907809
Description
When I start a new react-native project on my TECNO-L8 PLUS via USB, I have this error, while on my virtual device Nexus_5X API 23 andorid 6.0 everything works well
Reproduce issue
- react-native init <project_name>
- cd <project_name>
- react-native run-android --deviceId H80xxx
After step 3 i get
:app:bundleReleaseJsAndAssets
Scanning folders for symlinks in X:\xxxxxxxxx\node_modules (56ms)
Scanning folders for symlinks in X:\xxxxxxxxx\node_modules (63ms)
warning: the transform cache was reset.
Loading dependency graph, done.
Unable to resolve module AccessibilityInfo
from X:\xxxxxxxxx\node_modules\react-native\Libraries\react-native\react-native-implementation.js
: Module AccessibilityInfo
does not exist in the Haste module map
This might be related to #4968
To resolve try the following:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
. 4. Remove haste cache:rm -rf /tmp/haste-map-react-native-packager-*
.
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
note
- The physical device is connected (TECNO L8 PLUS android 5.1)
- OS: windows 8.1
- android Studio is update
- nodeJS is update
- python2 is update
- react: 16.4.1
- react-native: 0.56.0
So what's wrong ?