Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hermes AndroidUnicodeUtils ClassNotFoundException #25679

Closed
mllrmat opened this issue Jul 16, 2019 · 5 comments
Closed

Hermes AndroidUnicodeUtils ClassNotFoundException #25679

mllrmat opened this issue Jul 16, 2019 · 5 comments
Labels
Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. Tech: Hermes Hermes Engine: https://hermesengine.dev/

Comments

@mllrmat
Copy link

mllrmat commented Jul 16, 2019

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.

@mllrmat mllrmat added the Bug label Jul 16, 2019
@react-native-bot react-native-bot added the Platform: Android Android applications. label Jul 16, 2019
@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Jul 16, 2019
@ericlewis
Copy link
Contributor

can you please post a repro?

@mllrmat
Copy link
Author

mllrmat commented 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?

@stale
Copy link

stale bot commented Oct 15, 2019

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 stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 15, 2019
@stale
Copy link

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.

@stale stale bot closed this as completed Oct 22, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. Tech: Hermes Hermes Engine: https://hermesengine.dev/
Projects
None yet
Development

No branches or pull requests

3 participants