没有JNI_OnLoad中发现的...跳过初始化 [英] No JNI_OnLoad found in ... skipping init

查看:1005
本文介绍了没有JNI_OnLoad中发现的...跳过初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经得到这个消息,在过去一天左右,而到现在为止还没有引起一个问题。我得到了我的code与我的本地库前面跑,但今天我增加了一些新的功能,并再次将无法正常工作。

I've been getting this message for the past day or so, and up until now it hasn't caused a problem. I got my code to run with my native library earlier but today I added a few new functions and again it will not work.

有没有在LogCat中显示的错误,但我的程序只是打开瞬间我的设备上关闭。目前没有消息说该应用程序已意外停止,在屏幕上只是一个黑色的闪光。

There are no errors displayed in LogCat, but my program just opens and closes instantly on my device. There is no message saying that the application has stopped unexpectedly, just a black flash across the screen.

我环顾四周谷歌和SO但也有很多不同的原因,这条消息就上来了。这是我的LogCat中:

I have looked around google and SO but there are SO many different reasons for this message to come up. Here is my LogCat :

08-03 10:44:50.186: D/dalvikvm(2143): Trying to load lib /data/data/my.eti.commander/lib/libRelayAPI.so 0x40514f58
08-03 10:44:50.186: D/dalvikvm(2143): Added shared lib /data/data/my.eti.commander/lib/libRelayAPI.so 0x40514f58
08-03 10:44:50.186: D/dalvikvm(2143): No JNI_OnLoad found in /data/data/my.eti.commander/lib/libRelayAPI.so 0x40514f58, skipping init
08-03 10:44:50.288: I/DEBUG(1058): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-03 10:44:50.288: I/DEBUG(1058): Build fingerprint: 'LENOVO/IdeaPad_Tablet_A1_07/A1_07:2.3.4/GRJ22/eng.user.20120209.100319:user/release-keys'

我想知道的是:

What I would like to know is :

1),这是无JNI_OnLoad 消息引起我的程序不开?

1) Is this No JNI_OnLoad message causing my program to not open?

2)如果是这样,我知道我有没有我的code贴,但也有人解释此消息的总体思路。包括哪些的init 则跳过。

2) If so, I know I have none of my code posted, but could someone explain the general idea of this message. Including what init it is skipping.

编辑:

我今天加入新的功能被注释掉时发生这种情况。我本来已经得到一个不同的错误,并希望确保我的老code还在工作。

The new functions I added today were commented out when this happened. I had originally gotten a different error, and wanted to make sure my old code was still working.

推荐答案

函数JNI_OnLoad不是必需的。因此,如果你还没有提供这个功能,你的程序应该正常运行。

The function "JNI_OnLoad" is not essential. Thus, if you have not provided this function, your program should run normally.

您的问题来自于你的code另一部分。尝试使用NDK-gdb来解决这个问题。

Your problem come from another part of your code. Try to use ndk-gdb to fix it.

祝你好运!

这篇关于没有JNI_OnLoad中发现的...跳过初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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