安卓启动摄像机时报错 setParameters failed

0 投票
最新提问 8月 17, 2018 用户: chydison (120 分) 1 举报
这里付上一段log,请帮忙看一下,谢谢,我觉得可能是我这边有地方搞错,运行时序错了导致的。

具体报错是CameraDevice.java:323

08-17 15:36:34.719: I/EasyAR(19800): EasyAR SDK Basic Version 2.2.0
08-17 15:36:34.788: I/Unity(19800): LUA@122.9533: [easyar] change camear device type : 1
08-17 15:36:34.788: I/Unity(19800):  
08-17 15:36:34.788: I/Unity(19800): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 56)
08-17 15:36:34.848: E/libc(19800): Access denied finding property "camera.hal1.packagelist"
08-17 15:36:34.986: D/Camera(19800): get extension message: what = 8191 , type = 3 , arg = 0
08-17 15:36:34.986: D/Camera(19800): get extension message: what = 8191 , type = 6 , arg = 0
08-17 15:36:36.296: E/libc(19800): Access denied finding property "camera.hal1.packagelist"
08-17 15:36:42.914: W/System.err(19800): java.lang.RuntimeException: setParameters failed
08-17 15:36:42.914: W/System.err(19800):     at android.hardware.Camera.native_setParameters(Native Method)
08-17 15:36:42.914: W/System.err(19800):     at android.hardware.Camera.setParameters(Camera.java:2029)
08-17 15:36:42.914: W/System.err(19800):     at cn.easyar.engine.CameraDevice.setSize(CameraDevice.java:323)
08-17 15:36:42.914: W/System.err(19800):     at cn.easyar.engine.CameraDevice.open(CameraDevice.java:110)
08-17 15:36:42.914: W/System.err(19800):     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
08-17 15:36:42.914: W/System.err(19800):     at com.unity3d.player.UnityPlayer.a(Unknown Source:0)
08-17 15:36:42.914: W/System.err(19800):     at com.unity3d.player.UnityPlayer$b.run(Unknown Source:43)
08-17 15:36:42.928: D/Camera(19800): get extension message: what = 8191 , type = 3 , arg = 0
08-17 15:36:42.928: D/Camera(19800): get extension message: what = 8191 , type = 6 , arg = 0
08-17 15:36:42.928: E/Camera(19800): Error 100
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016] No pending exception expected: java.lang.RuntimeException: setParameters failed
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016]   at void android.hardware.Camera.native_setParameters(java.lang.String) (Camera.java:-2)
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016]   at void android.hardware.Camera.setParameters(android.hardware.Camera$Parameters) (Camera.java:2029)
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016]   at boolean cn.easyar.engine.CameraDevice.setSize(int, int) (CameraDevice.java:323)
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016]   at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016]   at boolean com.unity3d.player.UnityPlayer.a(com.unity3d.player.UnityPlayer) ((null):-1)
08-17 15:36:42.946: A/zygote(19800): thread.cc:2016]   at void com.unity3d.player.UnityPlayer$b.run() ((null):-1)

登录 或者 注册 后回答这个问题。

欢迎来到 EasyAR Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...