**Camera2 is working fine but getting this logs.**
java.lang.IllegalStateException: Handler (android.os.Handler)
{1fe5136} sending message to a Handler on a dead thread
at
android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
at android.os.Handler.enqueueMessage(Handler.java:661)
at android.os.Handler.sendMessageAtTime(Handler.java:630)
at android.os.Handler.sendMessageDelayed(Handler.java:600)
at android.os.Handler.post(Handler.java:356)
at
ndroid.hardware.camera2.dispatch.HandlerDispatcher.dispatch(HandlerDi spatcher.java:61) 在android.hardware.camera2.dispatch.MethodNameInvoker.invoke(MethodNameInvoker.java:90) 在android.hardware.camera2.impl.CallbackProxies $ SessionStateCallbackProxy.onClosed(CallbackProxies.java:189) 在android.hardware.camera2.impl.CameraCaptureSessionImpl $ SequenceDrainListener.onDrained(CameraCaptureSessionImpl.java:716) 在android.hardware.camera2.utils.TaskDrainer $ 1.run(TaskDrainer.java:210) 在android.os.Handler.handleCallback(Handler.java:789) 在android.os.Handler.dispatchMessage(Handler.java:98) 在android.os.Looper.loop(Looper.java:164) 在android.app.ActivityThread.main(ActivityThread.java:6944) 在java.lang.reflect.Method.invoke(本机方法) 在com.android.internal.os.Zygote $ MethodAndArgsCaller.run(Zygote.java:327) 在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)