You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.RuntimeException: startPreview failed
at android.hardware.Camera.startPreview (Camera.java)
at com.kathline.barcode.CameraSource.start (CameraSource.java:181)
at com.kathline.barcode.CameraSourcePreview.startIfReady (CameraSourcePreview.java:85)
at com.kathline.barcode.CameraSourcePreview.access$200 (CameraSourcePreview.java:32)
at com.kathline.barcode.CameraSourcePreview$SurfaceCallback.surfaceCreated (CameraSourcePreview.java:114)
at android.view.SurfaceView.updateWindow (SurfaceView.java:618)
at android.view.SurfaceView$3.onPreDraw (SurfaceView.java:161)
at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2206)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1255)
The text was updated successfully, but these errors were encountered:
而且这里还有个异常,希望一并处理了吧 Catch exception thrown by a lifecycle observer used by MLKit, reported by vivo S1 with Android 9
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.content.pm.action.REQUEST_PERMISSIONS
pkg=com.android.packageinstaller (has extras) }
--- some stacktrace ---
at androidx.fragment.app.Fragment.requestPermissions (Fragment.java:1654)
at com.kathline.barcode.PermissionUtil$PermissionFragment.requestPermissions (PermissionUtil.java:193)
at com.kathline.barcode.PermissionUtil.requestPermissions (PermissionUtil.java:144)
at com.kathline.barcode.MLKit.requirePermission (MLKit.java:304)
at com.kathline.barcode.MLKit.startCameraSource (MLKit.java:254)
at com.kathline.barcode.MLKit.onStart (MLKit.java:75)
发现一个异常,希望修复
The text was updated successfully, but these errors were encountered: