0 votes

I am trying to add the following NuGet packages to my project

In packages.config

<package id="AsyncIO" version="0.1.69" targetFramework="net47" />
<package id="NetMQ" version="4.0.0.207" targetFramework="net47" />

In the .csproj

<Reference Include="AsyncIO, Version=0.1.69.0, Culture=neutral, PublicKeyToken=44a94435bd6f33f8, processorArchitecture=MSIL">
      <HintPath>packages\AsyncIO.0.1.69\lib\net40\AsyncIO.dll</HintPath>
    </Reference>
<Reference Include="NetMQ, Version=4.0.0.207, Culture=neutral, PublicKeyToken=a6decef4ddc58b3a, processorArchitecture=MSIL">
      <HintPath>packages\NetMQ.4.0.0.207\lib\net40\NetMQ.dll</HintPath>
</Reference>

This works on Linux but when creating the APK these assemblies are not copied
so the Android version crashes.

The same is true for System.Threading.Tasks.Dataflow

The mono crash log puts this in the logs:

The following assembly referenced from .mono/assemblies/Debug/Sample.dll could not be loaded:
     Assembly:   System.Threading.Tasks.Dataflow    (assemblyref_index=2)
     Version:    4.0.0.0
     Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/.mono/assemblies/Debug/).

(And the same for the other two packages)

Other 3rd party packages work fine. And NetMQ has been confirmed to work on Android with Mono and even Unity (It's a 100% managed implementation)

Any idea how to solve this?

Update
Turns out there is more going on than I expected.
See sometimes when I export the APK the libraries that could not be found
can be found and everything works and then other times other libraries
that could be found before cannot be found.
This happens without code changes.

in Engine by (22 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.