Kafka integration in unity3d throwing Win32Exception error

前端 未结 2 1184
清酒与你
清酒与你 2020-12-21 08:58

I am trying to run a code sample of Kafka in unity environment and for this reason, I created a consumer client (Code given below).

2条回答
  •  渐次进展
    2020-12-21 09:37

    For future user, here is the process to add Kafka in your Unity3d Project: Actually there is a specific order or folder hierarchy to add dll in your project. (I didn't find any authoritative reference about this if someone found then please share)

    1. First paste Confluen.Kafka dll in whatever your folder

    1. Then Make librdkafka folder(Make sure it is created next to confluent.kafka dll) and paste your platform related dll in x64 or x86 Folder

    Now, you can run my code sample(mentioned in question).

    IMP NOTE: After building the player, you have to manually copy the dll files in your Player/Managed/librdkafka folder. You have to create librdkafka folder in managed folder, then paste your dlls.(Again i don't know why it require but if someone found authoritative refrence then share)

提交回复
热议问题