Xamarin Android:调用SO文件的本地库方法与SIGSEGV崩溃

时间:2015-03-13 11:13:37

标签: c# android mono xamarin xamarin.android

我正在使用Xamarin Studio开发Android 我已将SO文件添加到库中,并按照Xamarin文档中描述的步骤进行操作。 我的应用程序能够构建和运行设备但是在从SO文件共享库调用本机方法时,我得到了一个异常的例外

   Stacktrace:
[mono-rt] 
[mono-rt]   at <unknown> <0xffffffff>
[mono-rt]   at (wrapper managed-to-native)_init (string,int) <IL 0x00038, 0xffffffff>
[mono-rt]   at (wrapper dynamic-method) object.cbf4c5d8-8ed7-41b7-954a-1802bf0daaf0 (intptr,intptr,int,intptr) <IL 0x0001d, 0x00053>[mono-rt]   at (wrapper native-to-managed) object.cbf4c5d8-8ed7-41b7-954a-1802bf0daaf0 (intptr,intptr,int,intptr) <IL 0x00026, 0xffffffff>
[mono-rt] Got a SIGSEGV while executing native code. This usually indicates
[mono-rt] a fatal error in the mono runtime or one of the native libraries 
[mono-rt] used by your application.


[libc] Fatal signal 11 (SIGSEGV) at 0x766566d3 (code=1)

我想知道为什么上面的崩溃会如何解决呢?

0 个答案:

没有答案