最新版3.x也会出现这个错误 java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera.setHasPreviewCallback(Native Method) at android.hardware.Camera.-wrap0(Camera.java) at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1259) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:203) at android.app.ActivityThread.main(ActivityThread.java:6251) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924) Back traces ends.
1条答案
按热度按时间hpcdzsge1#
最新版3.x也会出现这个错误
java.lang.RuntimeException: Camera is being used after Camera.release() was called
at android.hardware.Camera.setHasPreviewCallback(Native Method)
at android.hardware.Camera.-wrap0(Camera.java)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1259)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Back traces ends.