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.

ninja: error: /arm64-v8a/libhermes.so', needed by /arm64-v8a/libreanimated.so

See original GitHub issue

Description

gradlew assembleRelease

getting this error after update from 0.69 to 0.70

execution failed for task ‘:react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]’.

Build command failed. Error while executing process C:\Users\ABC\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C D:\app\myapp\node_modules\react-native-reanimated\android.cxx\RelWithDebInfo\l4546g3a\arm64-v8a reanimated} ninja: Entering directory `D:\app\myapp\node_modules\react-native-reanimated\android.cxx\RelWithDebInfo\l4546g3a\arm64-v8a’
[0/2] Re-checking globbed directories…

ninja: error: ‘…/…/…/…/build/third-party-ndk/hermes/jni/arm64-v8a/libhermes.so’, needed by ‘D:/app/myapp/android/build/react-native-reanimated/intermediates/cxx/RelWithDebInfo/l4546g3a/obj/arm64-v8a/libreanimated.so’, missing and no known rule to make it

Steps to reproduce

1.updated to 0.70 and added reanimated plugin 3.0.0.rc 2.just run the command gradlew assembleRelease

Snack or a link to a repository

Reanimated version

3.0.0-rc.2

React Native version

0.70.0

Platforms

Android

JavaScript runtime

No response

Workflow

No response

Architecture

No response

Build type

Release mode

Device

No response

Device model

No response

Acknowledgements

Yes

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nstoilovcommented, Nov 2, 2022

Hey @nstoilov, can you check if lib/x86/libhermes.so exists in the .apk file?

No, I generated and unzipped an apk, libhermes.so is not there.

1reaction
expouiccommented, Oct 30, 2022

Even with version 2.9.1 and react-native version 0.68.1 I can’t run the release build. Got this error:

com.facebook.jni.CppException: Could not get BatchedBridge, make sure your bundle is packaged correctly

Debug versions works fine with both versions!

@tomekzaw libhermes.so no! But have this two libhermes-executor-debug.so and libhermes-executor-release.so Screenshot 2022-10-30 at 10 16 07

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ninja not found by CMake - Stack Overflow
It was looking for "ninja-build", not "ninja"! I use CMake with Ninja extensively at work and at home, on Windows and Linux. So...
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