Skip to content

Release build of Hermes + ProGuard crashes on 0.62.0-rc.5 #28270

@hsjoberg

Description

@hsjoberg

When building a release version of Android with Hermes and ProGuard enabled, it instantly crashes on 0.62.0-rc.5.

In the log I see the following:

About to load: libhermes.so
libhermes.so not found on /data/data/com.rn062/lib-main
libhermes.so found on /data/app/com.rn062-Fjs_ZyNxAT33Mc4PFvqS7Q==/lib/x86
Not resolving dependencies for libhermes.so

React Native version:

0.62.0-rc.5

Steps To Reproduce

This is tested on Linux (PureOS, basically Debian).

  1. Create a new project npx react-native init RN062 --version 0.62.0-rc.5
  2. Enable Hermes and ProGuard in android/app/build.gradle
  3. Add Hermes exception in android/app/proguard-rules.pro:
    -keep class com.facebook.hermes.unicode.** { *; }
  4. Run npx react-native run-android --variant release. The app will instantly crash.

Expected Results

The app to function properly

Snack, code example, screenshot, or link to a repository:

Crash happens on create react native app template.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions