Failed to register native method nativeSetStatusCallback in base.apk

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to register native method nativeSetStatusCallback in base.apk相关的知识,希望对你有一定的参考价值。

  • 具体错误:
Failed to register native method com.serenegiant.usb.UVCCamera.nativeSetStatusCallback(JLcom/serenegiant/usb/IStatusCallback;)I in base.apk
2021-11-24 19:47:03.086 28179-28216/? E/libUVCCamera: [28216*serenegiant_usb_UVCCamera.cpp:2007:
registerNativeMethods]:registerNativeMethods failed(class=com/serenegiant/usb/UVCCamera)
    
    --------- beginning of crash
2021-11-24 19:47:03.087 28179-28216/? E/androidRuntime: FATAL EXCEPTION: a
    Process: com.serenegiant.usbcameratest, PID: 28179
    java.lang.NoSuchMethodError: no static or non-static method "Lcom/serenegiant/usb/UVCCamera;.Failed to register native method (JLcom/serenegiant/usb/IStatusCallback;)I"
  • 解决办法:

就是签名不对。

特别是要注意加密的问题。从代码来看什么都对,打包之后,JAVA类名已经变了,而JNI一层还是原来的。

以上是关于Failed to register native method nativeSetStatusCallback in base.apk的主要内容,如果未能解决你的问题,请参考以下文章

Failed to register dubbo:

SpringBoot+WebSocket问题:Failed to register @ServerEndpoint class

Docker下载镜像出现failed to register layer: symlink....问题

fiddler win10-1703Failed to register Fiddler as the system proxy

fiddler无法抓包的情况(failed to register as the system proxy)

flash9d.ocx failed to register HRESULT -2147220473 未注册