Repository navigation
Description
Build is failing when I enable Hermes in android/app/build.gradle
React Native version:
System:
OS: macOS 10.14.5
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 71.63 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 24, 25, 26, 27, 28
Build Tools: 21.1.2, 23.0.1, 25.0.0, 25.0.1, 25.0.2, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.2, 28.0.3, 29.0.0
System Images: android-23 | Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-27 | Android TV Intel x86 Atom, android-27 | Intel x86 Atom, android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64
Android NDK: 20.0.5594570
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2/10E125 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.2 => 0.60.2
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-create-library: 3.1.2
react-native-git-upgrade: 0.2.7
Steps To Reproduce
- Follow the steps mentioned in hermes
- react-native run-android --variant release
Describe what you expected to happen:
Build to pass after enabling Hermes
Snack, code example, or link to a repository:
https://github.com/bhaskarGyan/react-native-memory-profile/tree/bug/rn-0.60.2_hermes

Activity
clangen-nw commentedon Jul 11, 2019
This seems to be caused by the hard-coded path to the hermes binary, here: https://github.com/facebook/react-native/blob/0.60-stable/react.gradle#L19
My
npm installended up placing it in a different location innode_modules, so I did the following in myandroid/app/build.gradle:ecreeth commentedon Jul 11, 2019
@bhaskarGyan this issue has been fixed in #25598
burhanyilmaz commentedon Jul 11, 2019
I have the same error :/ @bhaskarGyan did you solve it?
ecreeth commentedon Jul 11, 2019
cc @bhaskarGyan @burhanyilmaz to fix this issue use the
0.60.3React Native versionKarniej commentedon Jul 11, 2019
@ecreeth I actually just installed 0.60.3 and my build succeeded , but the app crashes on start
burhanyilmaz commentedon Jul 11, 2019
@ecreeth Thanks I solved this via #25598
it is really fast :)
ecreeth commentedon Jul 11, 2019
@Karniej The React Native Team, recommend making sure everything works before trying to switch to Hermes. If everything is fine with your application, but with Hermes your application is broken, please send a issue
farshidshahmoradi1996 commentedon Jul 11, 2019
I have same issue with
0.60.3in--variant release(in dev is ok )
Execution failed for task ':app:bundleReleaseJsAndAssets'.
ecreeth commentedon Jul 11, 2019
@farshidshahmoradi1996 I'm not sure, but I think that before using the command, we must take a few steps before. Here

farshidshahmoradi1996 commentedon Jul 11, 2019
when I open
hermes.exefromnode_modules\hermesvm\win64-binthat take error :OS :win 8.1 (x64)
that problem comes from my windows?
I have this problem only in release version
bhaskarGyan commentedon Jul 12, 2019
@ecreeth, #25598 fix the build issue but now the App is crashing on Startup.
Raised new issue #25601
I can close this issue if build is working for @farshidshahmoradi1996
farshidshahmoradi1996 commentedon Jul 12, 2019
@bhaskarGyan build is not working in
--variant releaseburhanyilmaz commentedon Jul 12, 2019
There is no problem production and development in my app. But not starting js server when running
react-native run-android.There is a solution that
react-native start & react-native run-android. it is not good.Hermes cause this problem? @ecreeth
cpojer commentedon Jul 12, 2019
Fixed in 0.60.3.
87 remaining items
bajran commentedon Oct 5, 2019
I am using 0.61.2, still I am getting same error of hermes in window...
shivaping commentedon Oct 5, 2019
I'm still seeing the same error as well in-spite of following the steps mentioned above
efleurine commentedon Oct 5, 2019
The day my Hermes config works, I will pay myself 2 ice creams.
bajran commentedon Oct 8, 2019
It works in ubuntu and not working in window. If I need to reduce the size of apk using hermes, then I need to used ubuntu for that
usmansbk commentedon Oct 8, 2019
@willholen
Is this a super bug?
Is something wrong with the patch we've been using?
Should Windows users migrate to a different OS?
Why won't they fix this bug? Modifying the
react.gradlefile is really annoying.Maskedman99 commentedon Oct 25, 2019
Running ./gradlew bundleRelease is giving many similar kind of errors with different variables
Eventhough an app.abb is being created app crashes while running.
However react-native run-android --variant=release works fine.
I am using Linux ( Ubuntu ) and facing the problem :(
riazXrazor commentedon Oct 29, 2019
i am using 0.60.5 still facing the issue :(
@andreasbergqvist fix worked
mikehardy commentedon Oct 29, 2019
Yeah, it was merged to master but that was after the 0.61-branch was cut, so it hasn't made it in a release there. I just added the commit to the request for cherry-picks on 0.61 after seeing @LuigiMaestrelli mention it.
I just checked on 0.62-stable and it's on there https://github.com/facebook/react-native/blob/0.62-stable/react.gradle#L153 so whenever 0.62.0 comes out (it's really close but is blocked on CI failures if anyone wants to lend a hand...) it will have it as well.
Until then get yourself some patch-package goodness - makes incorporating known fixes in old releases super easy and reliable across all installs of your project :-). Cheers
roots-ai commentedon Nov 5, 2019
@zenz How did this got resolved on mac?
roots-ai commentedon Nov 5, 2019
How did you resolve it?
stale commentedon Feb 3, 2020
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
stale commentedon Feb 10, 2020
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.