Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Android `androidTest` build fails with duplicate Hermes JNI libs (`libhermestooling.so` / `libhermesvm.so`) on RN 0.83.1

オープン
#267 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
android, react-native

調査の方向性

Start with android/build.gradle, especially packagingOptions, and reproduce the failure with npm run e2e:debug-build or the mergeDebugAndroidTestNativeLibs task. Compare the duplicate Hermes libraries from react-native-worklets-core with those from RN 0.83.1 and hermes-android. Done means the Android test merge and full Detox debug build succeed without a consumer-side workaround.

索引モデルが issue の本文から書いたものです。

説明

Hi! Thanks for the great library.

We’re seeing an Android test-build failure (Detox / androidTest) with [email protected] due to duplicate native libs during merge.

Environment

  • react-native-worklets-core: 1.6.2
  • react-native: 0.83.1
  • Gradle: 9.0.0 (wrapper)
  • Android NDK: 27.1.12297006
  • OS: Linux

Repro

In a RN app with Detox enabled, run a debug android test build (for us this is via npm run e2e:debug-build).

Fails at:

  • :react-native-worklets-core:mergeDebugAndroidTestNativeLibs

Error

Initially:

2 files found with path 'lib/arm64-v8a/libhermestooling.so' from inputs:
- .../node_modules/react-native-worklets-core/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libhermestooling.so
- .../.gradle/caches/.../jetified-react-android-0.83.1-debug/jni/arm64-v8a/libhermestooling.so

After excluding that one, next duplicate is:

2 files found with path 'lib/arm64-v8a/libhermesvm.so' from inputs:
- .../node_modules/react-native-worklets-core/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libhermesvm.so
- .../.gradle/caches/.../jetified-hermes-android-0.14.0-debug/jni/arm64-v8a/libhermesvm.so

Current workaround

In react-native-worklets-core/android/build.gradle under packagingOptions.excludes, adding:

"**/libhermestooling.so",
"**/libhermesvm.so",

fixes the issue for us. After this, both:

  • :react-native-worklets-core:mergeDebugAndroidTestNativeLibs
  • full Detox debug build

succeed.

Request

Would you consider adding these excludes upstream (or otherwise adjusting packaging) so androidTest/Detox builds work out of the box on RN 0.83.x?

Happy to provide more logs or test a PR.

主要言語
C++
スター
791
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

margelo/react-native-worklets-core のほかの issue

margelo/react-native-worklets-core の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。