1.
java.lang.UnsatisfiedLinkError: Native method not found: .contentsend.ContentSendJNI.setContentType:(I)V
at com.svocloud.vcs.polycom.contentsend.ContentSendJNI.setContentType(Native Method)
at com.svocloud.vcs.polycom.contentsend.ContentSendJNI.initContent(ContentSendJNI.java:46)
at com.svocloud.vcs.main.AppApplication.initiallize(AppApplication.java:679)
at com.svocloud.vcs.main.AppApplication.onCreate(AppApplication.java:150)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4587)
at android.app.ActivityThread.access$1300(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1401)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5318)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
这个是在加载本地方法的时候,应该是没有加载这个lib包,
未发现原因是,有很多so的包,其他的功能都是MFW的jar包里面封装好了,就是剩下两个没有封装进去,所以需要自己手动加载,加载后就有了
java.lang.UnsatisfiedLinkError:
No implementation found for void com.polycom.mfw.contentsend.ContentSendJNI.setContentType(int)
(tried Java_com_polycom_mfw_contentsend_ContentSendJNI_setContentType
and Java_com_polycom_mfw_contentsend_ContentSendJNI_setContentType__I)
at com.polycom.mfw.contentsend.ContentSendJNI.setContentType(Native Method)
at com.polycom.mfw.contentsend.ContentSendJNI.initContent(ContentSendJNI.java:46)
at com.svocloud.vcs.main.AppApplication.initiallize(AppApplication.java:679)
at com.svocloud.vcs.main.AppApplication.onCreate(AppApplication.java:150)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4557)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5258)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
这个是找到方法,但是没有实现
现在来说,已经成功加载so,但是调用方法的时候并没有按照相应的位置去放置调用类,JNI有很严格的标准,方法名和返回值