Tell us which versions you are using:
react-native info dump
System:
OS: macOS 10.14.5
CPU: (8) x64 Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
Memory: 4.13 GB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.4.0 - /usr/local/bin/node
Yarn: 1.17.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.4 => 0.60.4
npmGlobalPackages:
react-native-cli: 2.0.1
Tell us to which platform this issue is related
App to compile
App does not compile
Could not set process working directory to '/node_modules/react-native-image-crop-picker/example/android': could not setcwd() (errno 2: No such file or directory)
Install react-native-image-crop-picker and open / build android project
// stacktrace or any other useful debug info
Love react-native-image-crop-picker? Please consider supporting our collective:
馃憠 https://opencollective.com/react-native-image-crop-picker/donate
Same error on react-native-image-crop-picker v0.25.0 and react-native v0.60.4 too
i'm getting same error 馃憥 can anyone help
@andrey-tsaplin @ivpusic me too !!!!
I got my Android app working by using jetifier.
After running upgrading to React Native 0.60.4 opened Android Studio + open device manager to make sure you have an Android Emulator running.
When you run npx react-native android it will run Jetifier before it runs your RN App.
Unfortunately I can't get Android Studio to play nicely
In the meantime, just make the missing folder (no content necessary) to get your app building again.
I'm curious why this would only crop up now, when my environment doesn't appear to have changed, I haven't updated the library or other dependencies recently, and it appears to also be a recent occurrence for others. Ideas?
Yep mkdir -p node_modules/react-native-image-crop-picker/example/android/ removed this error for me
Still no one solved? Novices feel very difficult
This seems to be caused by android/react-native-image-crop-picker.iml in the npm package. The temporary solution is to remove it manually or with some tools like patch-package. @ivpusic I think this file should be exclueded on next release. (Maybe .npmignore or .gitignore?)
(Actually I think those other than src and build.gradle should also be ignored. 馃)
I have the same problem, react-native v0.61.2 and react-native-image-crop-picker v0.26.0
Verified @Phecda is correct. I've removed this file and everything is working
@ivpusic this is still an issue for me.. is anyone else still seeing this with ^0.32.0 or am I nuts
Most helpful comment
This seems to be caused by
android/react-native-image-crop-picker.imlin the npm package. The temporary solution is to remove it manually or with some tools likepatch-package. @ivpusic I think this file should be exclueded on next release. (Maybe.npmignoreor.gitignore?)(Actually I think those other than
srcandbuild.gradleshould also be ignored. 馃)