java.util.concurrent.TimeoutException:在android.hardware.Camera.native_release(本机方法)

时间:2019-02-08 15:49:40

标签: java android

请如何解决此错误

  

java.util.concurrent.TimeoutException:       在android.hardware.Camera.native_release(本机方法)       在android.hardware.Camera.release(Camera.java:616)       在android.hardware.Camera.finalize(Camera.java:601)       在java.lang.Daemons $ FinalizerDaemon.doFinalize(Daemons.java:217)       在java.lang.Daemons $ FinalizerDaemon.run(Daemons.java:200)       在java.lang.Thread.run(Thread.java:818)

      if (this.camera != null) {
            try {
                this.camera.stopPreview();
            } catch (RuntimeException e) {
            }
            try {
                this.camera.release();
                this.camera = null;
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

0 个答案:

没有答案