请教QT for android问题,QT 5.15.2 的QML项目启动相机后报错,提示No implementation found for void org.qtproject.qt5.android.multimedia.QtSurfaceTextureListener.notifyFrameAvailable(long) ,
使用qt示例的Camera代码可以正常启动相机,相同的代码放到我的项目里就出这个问题。
日志如下:
D/StubController(15038): holdForGetPermissionSelection mRequestCount:1
I/HwSystemManager( 1898): HoldService:checkBeforeShowDialog: uid:10216 pid:15038, permissionType:1024
D/StubController(15038): beforeShowDialogCheckResult:1
D/StubController(15038): minusRequestCount, mRequestCount =0 mPhoneIDRequestCount: 0 mLocationRequestCount: 0 permissionType is: 1024
I/PermissionManager(15038): camera remind result:true
I/CameraService( 404): CameraService::connect E (pid 15038 "cn.com.xx.xx", id 0)
E/Camera (15038): Camera new cameraInitNormal:0
E/art (15038): No implementation found for void org.qtproject.qt5.android.multimedia.QtSurfaceTextureListener.notifyFrameAvailable(long) (tried Java_org_qtproject_qt5_android_multimedia_QtSurfaceTextureListener_notifyFrameAvailable and Java_org_qtproject_qt5_android_multimedia_QtSurfaceTextureListener_notifyFrameAvailable__J)
D/AndroidRuntime(15038): Shutting down VM
E/AndroidRuntime(15038): FATAL EXCEPTION: main
E/AndroidRuntime(15038): Process: cn.com.xx.xx, PID: 15038
E/AndroidRuntime(15038): java.lang.UnsatisfiedLinkError: No implementation found for void org.qtproject.qt5.android.multimedia.QtSurfaceTextureListener.notifyFrameAvailable(long) (tried Java_org_qtproject_qt5_android_multimedia_QtSurfaceTextureListener_notifyFrameAvailable and Java_org_qtproject_qt5_android_multimedia_QtSurfaceTextureListener_notifyFrameAvailable__J)
E/AndroidRuntime(15038): at org.qtproject.qt5.android.multimedia.QtSurfaceTextureListener.notifyFrameAvailable(Native Method)
E/AndroidRuntime(15038): at org.qtproject.qt5.android.multimedia.QtSurfaceTextureListener.onFrameAvailable(QtSurfaceTextureListener.java:56)
E/AndroidRuntime(15038): at android.graphics.SurfaceTexture$1.handleMessage(SurfaceTexture.java:203)
E/AndroidRuntime(15038): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(15038): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(15038): at android.app.ActivityThread.main(ActivityThread.java:5689)
E/AndroidRuntime(15038): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15038): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(15038): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
E/AndroidRuntime(15038): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
I/Process (15038): Sending signal. PID: 15038 SIG: 9
D/DisplayManagerService( 1091): Display listener for pid 15038 died.
I/ActivityManager( 1091): Process cn.com.xx.xx (pid 15038) has died
D/ActivityManager( 1091): cleanUpApplicationRecord -- 15038
I/HwSystemManager( 1898): HoldService:uid:10216 pid:15038 died
I/HwSystemManager( 1898): HoldService:oldVersionKey:10216,15038
I/MediaProcessHandler( 1091): processOp opType: 1, uid: 10216, pid: 15038
W/MediaProcessHandler( 1091): remove target not exist, maybe the UI process: uid: 10216, pid: 15038
W/InputMethodManagerService( 1091): Got RemoteException sending setActive(false) notification to pid 15038 uid 10216
"cn.com.xx.xx" died.