hermes: Windows build failing in react.gradle with cryptic exit code
Using RN 0.62.1 (built from source) and hermes-engine 0.4.2-rc1 builds are failing on windows running the hermes binary at react-native/react.gradle line 165.
The only output is:
FAILURE: Build failed with an exception.
* Where:
Script 'C:\projects\MyProject\node_modules\react-native\react.gradle' line: 165
* What went wrong:
Execution failed for task ':app:bundleDebugJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value -1073741515
Running gradle with verbose output gives no additional info. The only way I can get around this is to disable hermes. I’m stumped about where to go with this since it’s giving me no info. Thoughts?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 19 (6 by maintainers)
I just fixed this issue by downloading vc_redist.x64.exe for 64 bit machine or vc_redist.x86.exe for 32 bit machine from https://support.microsoft.com/en-in/help/2977003/the-latest-supported-visual-c-downloads under Visual Studio 2015, 2017 and 2019
Thank you! We will update the NPMs ASAP.
@tmikov thank you for your reply. I figured it out. Apparently I was missing Visual C++ runtime. When I posted my first comment, I used PowerShell to run hermes. Now I have tried cmd, which actually showed a dialog saying VC runtime was missing. I didn’t assume I have to install anything since previous version of hermes worked just fine.
In case anyone else has the same error, here’s the link to Visual C++: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
hermes-engine@0.4.3has been released and includes this missing DLL, so hopefully this won’t be a problem anymore!