react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Android Crashing on Codepush for react native version 71.0 and codepush 8.0.2 for hermes build

Open Gautham495 opened this issue 1 year ago • 4 comments

Getting this error:

Fatal Exception: java.lang.UnsatisfiedLinkError couldn't find DSO to load: libhermes.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.app/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 result: 0 result: 0

Steps to Reproduce

  1. Create react native project version 71.0 and codepush 8.0.2
  2. Hermes is enabled
  3. New arch is disabled

Expected Behavior

Once codepushed, the android app should receive the update and then update the app and restart.

Actual Behavior

Once the update get received and the app updated the app crashes with the libhermes.so error.

Environment

  • react-native-code-push version: 8.0.2
  • react-native version: 71.0
  • iOS/Android/Windows version: Android
  • Does this reproduce on a debug build or release build? - In both
  • Does this reproduce on a simulator, or only on a physical device? - In both

I searched around the internet but did not get an answer - also applied this but to no use

implementation 'com.facebook.soloader:soloader:0.10.4+'

But iOS is working perfectly for same hermes build and disabled new arch.

Please provide a solution.

Gautham495 avatar Feb 14 '24 15:02 Gautham495

Was it working fine before 8.0.2? I mean is it working fine if we dont upgrade it to 8.0.2 from 8.0.1?

basit-rayn avatar Feb 20 '24 20:02 basit-rayn

@Gautham495, did it work for you previously? Have you recently updated React Native to version 0.71? Could you create a sample project to reproduce this issue?

DmitriyKirakosyan avatar Feb 21 '24 09:02 DmitriyKirakosyan

It was working on version 8.0.2. It says libhermes.so and the 'lib' libraries not found and crashes.

Gautham495 avatar Feb 22 '24 17:02 Gautham495

If it was functioning correctly in version 8.0.2 before, could you detail any modifications made to your app that might have caused this issue to emerge? Have you updated React Native or any associated libraries?

DmitriyKirakosyan avatar Feb 23 '24 06:02 DmitriyKirakosyan

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.