I am trying to create a Jabber (Jabber.net) chat client using Unity3D(Mono/C#) for iOS and Android. I got the client working in iOS (also runs well in Unity simulator). However, when running it on a Nexus 7 or HTC Desire it does not work. It does not crash, but does not connect either. It just produces the following error:
D/dalvikvm(9368): No JNI_OnLoad found in /system/lib/libc.so 0x413b7270, skipping init
This error is connected to the Connect method of my Jabber.net client:
jc = new JabberClient();
...
// Setting up the jabberclient and attaching eventhandlers
...
jc.Connect();
Any ideas how to solve it?
Edit: Reseaching JNI_OnLoad, I found this description:
Sorry that this is not an answer to your question but I’m curious how you got the jabber-net dlls to work at all.
I run into an internal compiler error when I try to instantiate a JabberClient
Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.TypeLoadException: Could not load type ‘jabber.connection.XmppStream’ from assembly ‘jabber-net, Version=2.1.0.710, Culture=neutral, PublicKeyToken=924c5b18328d6f09’.