question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing .so error on Unity sample for Android

See original GitHub issue

Describe the bug When attempting to deploy the Quickstart for Unity sample to Android, I get an “Unable to find libMicrosoft.CognitiveServices.Speech.core.so” error, despite the .so being contained in the built .apk

To Reproduce Steps to reproduce the behavior:

  1. Add Unity package to project (builds to Android).
  2. Include a class using Microsoft.CognitiveServices.Speech
  3. Build and deploy to device
  4. Press button trigger for Cognitive Services
  5. Error will appear in logs and services do not run.
Unity   : Unable to find libMicrosoft.CognitiveServices.Speech.core.so
Unity   : Unable to find Microsoft.CognitiveServices.Speech.core.so

Expected behavior Cognitive services to initialize and then start a recognizer at a button press. This tutorial.

Version of the Cognitive Services Speech SDK 1.4.2

Platform, Operating System, and Programming Language

  • OS: Android, using SDK 26
  • Hardware - ARM (armeabi-v7a), Pixel 3XL
  • Programming language: C# in Unity

Additional context I also receive this in the build logs: Assembly 'Microsoft.CognitiveServices.Speech.csharp' has non matching file name: 'Microsoft.CognitiveServices.Speech.csharp.unix.dll'. This can cause build issues on some platforms.

Only the .dll/.so files under the Android folder and the .csharp.unix.dll are configured for Android

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jhakulincommented, Jul 3, 2019

We have opened issue internally and identified issues when using 2019 version of Unity on Android. With 2018 version of Unity, we do not see issue on Android. I’ll update the thread once we know more about solution with 2019 version.

1reaction
wolfma61commented, Jul 3, 2019

@jhakulin - can you take a look?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unity does not see .so library in Android build
Here is the issue: I have a .so library with c++ functions, mark it for Android and Editor, put it into Assets/Plugins/Android folder, ......
Read more >
[Unity3D-Android] Missing libApp.so
We're working on a fix right now which looks like it will involve unpacking the AAR, performing variable expansion (as Unity doesn't set...
Read more >
Troubleshooting - Unity's Package Manager
This error message indicates that your manifest.json file is malformed. It also tells you the line number where the Package Manager failed to...
Read more >
Resource Not found exception while opening Unity Project ...
Unity expects a string called 'game_view_content_description' which they missed while bundling the app. So, we are getting resource not found ...
Read more >
Solving the Missing Prefab issue in Unity3d
Let's explore the problem to understand its cause and see what is the solution for it. Missing references. Unity uses .meta files to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found