question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changed proguard rule for Hermes is not specified in the upgrade helper for 0.62.

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
lucasbentocommented, Mar 30, 2020

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 🤗

2reactions
alloycommented, Mar 30, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found