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.

Hermes AndroidUnicodeUtils ClassNotFoundException

See original GitHub issue

Using 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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
mllrmatcommented, Jul 17, 2019

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?

0reactions
stale[bot]commented, Oct 22, 2019

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.

Read more comments on GitHub >

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

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