Hermes AndroidUnicodeUtils ClassNotFoundException
See original GitHub issueUsing 0.60.3 with Hermes enabled crashes with the following exception:
terminating with uncaught exception of type facebook::jni::JniException: java.lang.ClassNotFoundException: Didn't find class "com.facebook.hermes.unicode.AndroidUnicodeUtils"
This only happens in release builds on real devices.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Hermes Androidunicodeutils ClassNotFoundException. - react ...
Hermes AndroidUnicodeUtils ClassNotFoundException. 使用0.60.3使用Hermes启用crash ,以下异常:. terminating with uncaught exception of type ...
Read more >ebpf Populate program arrays from BTF .values Go - GitAnswer
This is an issue to track ongoing work on 'statically' (from ELF) populating map contents using BTF map definitions. This came up because...
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 Free
Top 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
I have enableProguardInReleaseBuilds enabled. So adding a line to my proguard-rules.pro config did the trick for me.
-keep class com.facebook.hermes.unicode.** { *; }
From what I found out this is caused by some code in the “share” module. I am using https://github.com/react-native-community/react-native-share/ but it seams to happen with the react native build in one as well.
Would be helpful if this proguard rule could be added somewhere. Where is the place this should go hermes/rn/react-native-share?
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.