问题描述
我开发SIP基础应用来拨打和接听为此我做分析的一个开源项目的除了这个我做这个应用程序来支持G729 codeC 即可。该应用程序工作正常,但是当我修改我得到与其他codeCS的应用程序工作这个新的codec.while错误的应用程序的包名fine.here是我error.Here我已经logcat的附上我的Java文件结果结果的结果 g729_jni.cpp
I am developing SIP base application to make and receive a calls for that purpose i did analysis on an open source project Sipdroid. in addition to this i made this application to support a g729 codec. the application is working fine but when i modified the package name of the application i am getting the error with this new codec.while with other codecs the application works fine.here is my logcat of error.Here i have attached my java files
G729.java
Codec.java
Codecs.java
g729_jni.cpp
06-28 08:12:29.633: E/AndroidRuntime(712): java.lang.UnsatisfiedLinkError: open
06-28 08:12:29.633: E/AndroidRuntime(712): at org.sipchat.codecs.G729.open(Native Method)
06-28 08:12:29.633: E/AndroidRuntime(712): at org.sipchat.codecs.G729.init(G729.java:48)
06-28 08:12:29.633: E/AndroidRuntime(712): at org.sipchat.codecs.Codecs$CodecSettings.onPreferenceTreeClick(Codecs.java:368)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.preference.Preference.performClick(Preference.java:820)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:190)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.widget.ListView.performItemClick(ListView.java:3513)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.os.Handler.handleCallback(Handler.java:587)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.os.Handler.dispatchMessage(Handler.java:92)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.os.Looper.loop(Looper.java:123)
06-28 08:12:29.633: E/AndroidRuntime(712): at android.app.ActivityThread.main(ActivityThread.java:3683)
06-28 08:12:29.633: E/AndroidRuntime(712): at java.lang.reflect.Method.invokeNative(Native Method)
06-28 08:12:29.633: E/AndroidRuntime(712): at java.lang.reflect.Method.invoke(Method.java:507)
06-28 08:12:29.633: E/AndroidRuntime(712): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-28 08:12:29.633: E/AndroidRuntime(712): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-28 08:12:29.633: E/AndroidRuntime(712): at dalvik.system.NativeStart.main(Native Method)
我.so文件来支持G729 $ C $立方公分,但改变这种.so文件不working.Because这个.so文件使用不同的包名制作的包名后。所以我必须有一个源文件,并需要重新编译它,使其工作。那怎么办?
I have .so file to support a g729 codec but after changing the package name that .so file is not working.Because this .so file is built using different package name. so i must have a source file and need to compile it again to make it working. how to do that?
如果任何人有这个想法,那么请给我这个错误的一些建议。如何处理这个问题?结果谢谢
if anyone have a idea about this then please give me some suggestion about this error. how to deal with this error?
Thanks
推荐答案
正如我面临着同样的问题...它不是你的JNI或whatevr codeC与实际的Java code匹配
As i have faced with same problem... its not matching with your JNi or whatevr Codec with your actual java code
这篇关于如何处理的UnsatisfiedLinkError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!