Livekit conflict and Error in Unity 6

What do you need help with?

Question

Installation method

UPM

Issue area

Package Manager / Dependencies

Impact

Major - a core flow is broken

Unity version

6.4

Convai Unity SDK version

4.4.1

Target platform

iOS

Where does it happen?

Sample scene

Short summary

Livekit conflict

What happened?

Livekit plugins conflict in uner Assets/Convai/… and Assets/Convai SDK for Unity/…
Even after I install the FFI libraries.
I was able to solve this a few times but when I close and reopen the project it happens again.

Unity Console errors or build logs

EntryPointNotFoundException: livekit_ffi_initialize assembly: type: member:(null)
LiveKit.Internal.FfiClient.InitializeSdk () (at Assets/Convai SDK For Unity/Plugins/client-sdk-unity-livekit/Runtime/Scripts/Internal/FFIClient.cs:236)
LiveKit.Internal.FfiClient.OnAfterAssemblyReload () (at Assets/Convai SDK For Unity/Plugins/client-sdk-unity-livekit/Runtime/Scripts/Internal/FFIClient.cs:109)
UnityEditor.AssemblyReloadEvents.OnAfterAssemblyReload () (at /Users/bokken/build/output/unity/unity/Editor/Mono/AssemblyReloadEvents.cs:43)

Screenshots, recording, logs, or minimal repro

I checked the relevant documentation, resources, and similar forum posts before posting.

on

I confirm that I did not include API keys, tokens, passwords, secrets, private character data, private conversation logs, or customer data.

on

Could you please remove the Assets\Convai\Plugins folder?

That does not help, unity recreats the Plugins everytime on runtime or after closing and reopenning the project.

This looks like duplicate copies of the LiveKit plugin ending up in the project, where only one copy carries the native FFI binary. Can you check the following and share the results?

  1. Search your whole project for all copies of the plugin folder:

    • Assets/Convai/Plugins/client-sdk-unity-livekit
    • Assets/Convai SDK for Unity/Plugins/client-sdk-unity-livekit (or similar)
    • Packages/com.convai.convai-sdk-for-unity/Plugins/client-sdk-unity-livekit
    • Library/PackageCache/com.convai.convai-sdk-for-unity@*/Plugins/client-sdk-unity-livekit
      How many copies exist, and under which exact paths?
  2. In each copy, does Runtime/Plugins/ffi-/ contain the native
    library (livekit_ffi.dll on Windows, .so/.dylib/.a on other platforms)?

  3. Did you install the Convai SDK both via a .unitypackage / manual Assets
    import AND via the UPM package (Package Manager / git URL)?

  4. Check the Console for a separate warning like “Multiple plugins with the
    same name ‘livekit_ffi’” around the time of the EntryPointNotFoundException
    — this confirms Unity is seeing more than one copy and picking the wrong one.

  5. Which Convai SDK install method did you use, and did you ever import an
    older version on top of a newer one without removing the old folder first?