Skip to content

fix unity android build#983

Merged
xianshijing-lk merged 2 commits intomainfrom
sxian/fix_unity_android
Mar 31, 2026
Merged

fix unity android build#983
xianshijing-lk merged 2 commits intomainfrom
sxian/fix_unity_android

Conversation

@xianshijing-lk
Copy link
Copy Markdown
Contributor

W System.err: java.lang.ClassNotFoundException: Didn't find class "org.webrtc.DefaultVideoEncoderFactory" on path: DexPathList[[zip file "/data/app/~~oP3228O21750Hx3OJGijZg==/com.UnityTestRunner.UnityTestRunner-peE14LspoPWzzJbDcE_JIg==/base.apk"],nativeLibraryDirectories=[/data/app/~~oP3228O21750Hx3OJGijZg==/com.UnityTestRunner.UnityTestRunner-peE14LspoPWzzJbDcE_JIg==/lib/arm64, /data/app/~~oP3228O21750Hx3OJGijZg==/com.UnityTestRunner.UnityTestRunner-peE14LspoPWzzJbDcE_JIg==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
03-30 18:12:01.495 30875 30980 E rtc  : # Fatal error in: ../sdk/android/native_api/jni/class_loader.cc, line 53

It was due to
The newly built JAR (timestamp Mar 30 18:32) still has classes under livekit/org/webrtc/ - this is a bug in the LiveKit SDK build. The native library expects org.webrtc.* but the JAR is built with livekit.org.webrtc.* prefix.

This PR fixes the problem

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2026

Changeset

The following package versions will be affected by this PR:

Package Bump
livekit-ffi patch
webrtc-sys patch

@xianshijing-lk xianshijing-lk requested review from MaxHeimbrock, alexlivekit, cloudwebrtc, ladvoc and reenboog and removed request for alexlivekit March 31, 2026 02:23
Copy link
Copy Markdown
Contributor

@cloudwebrtc cloudwebrtc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@xianshijing-lk xianshijing-lk merged commit 712226a into main Mar 31, 2026
22 checks passed
@xianshijing-lk xianshijing-lk deleted the sxian/fix_unity_android branch March 31, 2026 03:42
@knope-bot knope-bot bot mentioned this pull request Mar 31, 2026
ladvoc pushed a commit that referenced this pull request Mar 31, 2026
> [!IMPORTANT]
> Merging this pull request will create these releases

# libwebrtc 0.3.28 (2026-03-31)
## Fixes

- Upgrade to thiserror 2

### fix: fix unavailable sem symbol for Linux aarch64.

#975 by @cloudwebrtc
# livekit 0.7.35 (2026-03-31)
## Features

- Expose participant active event, state, and joined at

## Fixes

- Upgrade to thiserror 2
# livekit-ffi 0.12.51 (2026-03-31)
## Fixes

- Expose participant active event, state, and joined at
- fix unity android build with "livekit" prefixed jni - #983
(@xianshijing-lk)
- Upgrade to thiserror 2
# livekit-datatrack 0.1.2 (2026-03-31)
## Fixes

- Upgrade to thiserror 2
# livekit-wakeword 0.1.2 (2026-03-31)
## Fixes

- Upgrade to thiserror 2
# webrtc-sys 0.3.26 (2026-03-31)
## Fixes

- fix unity android build with "livekit" prefixed jni - #983
(@xianshijing-lk)

### fix: fix unavailable sem symbol for Linux aarch64.

#975 by @cloudwebrtc
# livekit-protocol 0.7.3 (2026-03-31)
## Fixes

- Upgrade to thiserror 2
# livekit-api 0.4.17 (2026-03-31)
## Fixes

- Fix clippy warnings in livekit-api and build.rs
- Upgrade to thiserror 2

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants