client-sdk-unity icon indicating copy to clipboard operation
client-sdk-unity copied to clipboard

Error when building on Windows

Open AdamBuchweitz opened this issue 2 years ago • 2 comments

After adding LiveKit SDK to my project, I can no longer build due to the following error:

Library\PackageCache\io.livekit.livekit-sdk@60ae9e2e41\Runtime\Scripts\Internal\FFIClient.cs(69,13): error CS0176Member 'FfiClient.Initialize()' cannot be accessed with an instance reference; qualify it with a type name instead

AdamBuchweitz avatar Jul 20 '23 21:07 AdamBuchweitz

Same here, I'm using Unity 2023.1.16f1 When i try to build i get the error @AdamBuchweitz mentioned.

marianmatees avatar Oct 18 '23 15:10 marianmatees

I don't know if it helps guys or not but change line 69 to this image

FfiClient.Initialize(); instand of Instace.Initialize()

ashkan-saeedi-mazdeh avatar Dec 14 '23 17:12 ashkan-saeedi-mazdeh

Fixed in the latest version

cloudwebrtc avatar Jul 02 '24 05:07 cloudwebrtc