Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to create android release: java.io.FileNotFoundException (../node_modules/react-native/undefined)

Tags:

react-native

When executing ./assembleRelease from my react-native project's android folder project, I get the following error:

12:47:38.876 [ERROR] [org.gradle.BuildExceptionReporter] Failed to capture snapshot of input files for task 'bundleReleaseJsAndAssets' during up-to-date check.
12:47:38.876 [ERROR] [org.gradle.BuildExceptionReporter] > java.io.FileNotFoundException: /Users/michiel/Sites/Erbij/erbij/node_modules/react-native/undefined (Operation not supported on socket)

iOS releases are fine and local development werkt for both Android and iOS. Does anybody have an idea where to start search? Tried running with --verbose, --info and --debug, no luck.

I've also tried stripping my entire javascript code, and have App.js be a simple component that renders and empty view.

like image 815
Michiel Avatar asked Dec 14 '25 17:12

Michiel


1 Answers

I solve this error by deleting a file "node_modules/react-native/undefined"

like image 71
ujeenator Avatar answered Dec 16 '25 22:12

ujeenator



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!