Jabber.net上统一/ Android的错误(没有JNI_OnLoad在/system/lib/libc.so发现,跳过INIT) [英] Jabber.net on Unity/Android error (No JNI_OnLoad found in /system/lib/libc.so, skipping init)

查看:767
本文介绍了Jabber.net上统一/ Android的错误(没有JNI_OnLoad在/system/lib/libc.so发现,跳过INIT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Jabber(Jabber.net)使用Unity3D(单声道/ C#)为iOS和Android的聊天客户端。我得到了客户端在iOS中工作(也是统一模拟器运行良好)。然而,在一台Nexus 7或HTC Desire的运行时,这是行不通的。它不会崩溃,但不连接任何。它只是产生以下错误:

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):没有JNI_OnLoad在/system/lib/libc.so 0x413b7270发现,跳绳初始化

D/dalvikvm(9368): No JNI_OnLoad found in /system/lib/libc.so 0x413b7270, skipping init

此错误是连接到我的Jabber.net客户端的连接方式:

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?

编辑:指导员研究JNI_OnLoad,我发现这样的描述:

Reseaching JNI_OnLoad, I found this description:

虚拟机时的本机库被装载(例如,通过的System.loadLibrary)调用JNI_OnLoad。JNI_OnLoad必须返回所需要的本地库JNI的版本。   为了使用任何新的JNI函数,本地库必须导出JNI_OnLoad函数返回JNI_VERSION_1_2。如果本地库不导出JNI_OnLoad功能,虚拟机假定该库只要求JNI版本JNI_VERSION_1_1。如果VM不承认JNI_OnLoad返回的版本号时,本地库不能装载

"The VM calls JNI_OnLoad when the native library is loaded (for example, through System.loadLibrary). JNI_OnLoad must return the JNI version needed by the native library. In order to use any of the new JNI functions, a native library must export a JNI_OnLoad function that returns JNI_VERSION_1_2. If the native library does not export a JNI_OnLoad function, the VM assumes that the library only requires JNI version JNI_VERSION_1_1. If the VM does not recognize the version number returned by JNI_OnLoad, the native library cannot be loaded."

从的http://docs.oracle.com/javase/6/docs/technotes/guides/jni/spec/invocation.html#wp9502

难道是可能的重建Jabber.net与JNI_OnLoad方法返回JNI_VERSION_1_2 ??

Could it be possible to rebuild Jabber.net with a JNI_OnLoad method returning JNI_VERSION_1_2 ??

推荐答案

这是根本不可能的。不要在家里的孩子试试这个。

It's simply not possible. Don't try this at home kids.

这篇关于Jabber.net上统一/ Android的错误(没有JNI_OnLoad在/system/lib/libc.so发现,跳过INIT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆