Skip to content

Android CI Build Failure: Duplicate librnworklets.so in AAR Packaging #16680

@srijan2607

Description

@srijan2607

What happened?

The CI build is failing during the Android AAR bundling step for react-native-worklets-core with the following error:

Execution failed for task ':react-native-worklets-core:bundleReleaseLocalLintAar'.
> Could not add file '/__w/jitsi-meet/jitsi-meet/node_modules/react-native-worklets-core/android/build/intermediates/prefab_package/release/prefab/modules/rnworklets/libs/android.armeabi-v7a/librnworklets.so' to ZIP '/__w/jitsi-meet/jitsi-meet/node_modules/react-native-worklets-core/android/build/outputs/aar/react-native-worklets-core-release.aar'.

The issue is caused by duplicate librnworklets.so native library files being included in the AAR packaging process. This occurs when Prefab creates multiple copies of the same .so file under different ABI architecture paths, and the ZIP bundler cannot handle duplicate entries.

When Did This Start?

This issue was introduced after PR #16393 (merged on September 9, 2025) which added react-native-worklets-core as a dependency and replaced duktape to align with Android 16kb page size requirements.

Related PR: #16393 - "dep(react-native-worklets-core): Replace duktape to align with Android 16kb page size alignment"

Platform

  • Chrome (or Chromium based)
  • Firefox
  • Safari
  • Other desktop browser
  • Android browser
  • iOS browser
  • Electron app
  • Android mobile app
  • iOS mobile app
  • Custom app using a mobile SDK

Browser / app / sdk version

Latest

Relevant log output

Execution failed for task ':react-native-worklets-core:bundleReleaseLocalLintAar'.
> Could not add file '/__w/jitsi-meet/jitsi-meet/node_modules/react-native-worklets-core/android/build/intermediates/prefab_package/release/prefab/modules/rnworklets/libs/android.armeabi-v7a/librnworklets.so' to ZIP '/__w/jitsi-meet/jitsi-meet/node_modules/react-native-worklets-core/android/build/outputs/aar/react-native-worklets-core-release.aar'.

Reproducibility

  • The problem is reproducible on meet.jit.si

More details?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions