• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by sarathsuresh · Nov 06, 2021 at 01:13 PM · androidandroidplugindllnotfoundexceptiondll error

Error while importing confluent packages and bundling it into an APK

Unity application packaged and deployed on Android. The application reads the video stream from the device camera and streams it to the server-side components to apply ML model. Returns the inference to the application to be rendered on the user screen

Environment, Tools and Frameworks *Windows10 *Android - Versions 7.0 and above. *Unity version 2020.3.12f1 *Packages imported: -Confuent kafka : 1.0.0 to 1.8.2 -librdkafka.redlist: 1.0.0 to 1.8.2

1) Error while running the application in Unity: Confluent.kafka.dll' will not be loaded due to errors: is the assembly missing or incompatible with the current platform?

Here is the part of the code in Unity where I am facing issues(Just including the part which is relevant) Confluent.Kafka.dll files from 1.0.0 to 1.8.2 not supported in the unity 2020.3.12f1 version The class(consumerBuilder) I'm trying to access is available only in the above-mentioned versions. What is the compatible version of the Confluent.Kafka plugin that could be used in the aforesaid version of Unity

 // Starting the consumer
 using (var consumer = new ConsumerBuilder<Null, string>(consumerConfig).Build())
 {
     var timeString = DateTime.Now.ToString("hh:mm:ss");
     Debug.Log(timeString);
     consumer.Subscribe(kafkaTopic);
     try
     {
         while (true)
         {
             var consumeResult = consumer.Consume();
             Debug.Log("The base64 is: " + consumeResult.Message.Value);                    
         }
 
     }
     catch (Exception)
     {
         consumer.Close();
         Debug.Log("Consumer Closed");
     }
 }

2) Error while running and the Unity application on Android

DllNotFoundException: Unable to load DLL 'librdkafka: The specified file could not be found.(Checked using the LogCat)

When the application build is done and deployed into the android phone(Version 10.0) the above-said error pops up and when searched for the required libraries i.e, librdkakafa.so and include the same, the same error message persists, is there any specific package available for the librdkafka for android armeabi-v7/arm64 architecture? Or is there any means to build a shared library that suits the needs of the said architecture? Thanks in advance.

Environment:

*Windows 10 *Unity version(Used to build the application): 2020.3.12f1 *Android version: 6.0(Marshmellow) or above. *Packages imported: -Confuent kafka : 0.9.4 -librdkafka.redlist: 0.9.4

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

278 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

DllNotFoundException: sqlite3 Android 6 Marshmallow 4 Answers

Using the MPFR number library on Android 0 Answers

Error while running higher versions of Conflunet Kafka inside Unity and while packaging it into an APK 0 Answers

dll is not allowed to be included or could not be found" error unity3d for android 8 Answers

DLL plugins unsupported for Android Application Building 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges