Changed proguard rule for Hermes is not specified in the upgrade helper for 0.62.
See original GitHub issueFeature Request
The new proguard rule for using Hermes:
-keep class com.facebook.jni.** { *; }
is not mentioned in the upgrade helper for 0.62.
Why it is needed
Omitting this update makes the Android release app with Hermes and Proguard crashes on startup:
FATAL EXCEPTION: create_react_context
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: com.facebook.jni.NativeRunnable
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
React Native Upgrade Helper
If you are using Hermes Engine and ProGuard, make sure to update the rules in proguard-rules.pro to what is specified in the documentation...
Read more >Upgrade to React Native 0.62 - Matt Oakes
React Native 0.62 has been a long time coming and brings many changes, large and small. This article explains what's new, how to...
Read more >Using Hermes - React Native
This change is fully transparent to users of React Native. You can still disable Hermes using the command described in this page.
Read more >React-Native :java.lang.UnsatisfiedLinkError: couldn't find ...
In my case I needed to add hermes path for each android flavour if (enableHermes) { ...
Read more >How to enable Hermes Engine in an existing react native app
Make specially sure that all changes to android/app/build.gradle have been applied, as detailed by the React Native upgrade helper.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added a comment to Upgrade-Helper to mention this change at react-native-community/upgrade-helper#224 and it should be up in prod in a few minutes.
Thank you so much for reporting this @muclipse, this will probably help a lot of people!
Thanks for the help here @pvinis & @alloy 🤗
Hmm, yeah we actually went back and forth on this in the CHANGELOG https://github.com/react-native-community/releases/pull/166#discussion_r398630351 but dropped the ball in the end.
Thanks for the reminder, added this https://github.com/react-native-community/releases/pull/182