Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,升级到 implementation 'androidx.camera:camera-view:1.1.0-alpha02'后报错 #14

Open
lxaccp opened this issue Jan 4, 2023 · 0 comments

Comments

@lxaccp
Copy link

lxaccp commented Jan 4, 2023

Caused by: java.lang.IllegalStateException: CameraX is not configured properly. The most likely cause is you did not include a default implementation in your build such as 'camera-camera2'.
at androidx.camera.core.CameraX.(CameraX.java:109)
at androidx.camera.lifecycle.ProcessCameraProvider.getOrCreateCameraXInstance(ProcessCameraProvider.java:181)
at androidx.camera.lifecycle.ProcessCameraProvider.getInstance(ProcessCameraProvider.java:167)
at com.maning.mlkitscanner.scan.camera.CameraManager.startCamera(CameraManager.java:91)
at com.maning.mlkitscanner.scan.ui.ScanPreviewActivity.startCamera(ScanPreviewActivity.java:128)
at com.maning.mlkitscanner.scan.ui.ScanPreviewActivity.initPermission(ScanPreviewActivity.java:105)
at com.maning.mlkitscanner.scan.ui.ScanPreviewActivity.onCreate(ScanPreviewActivity.java:73)
at android.app.Activity.performCreate(Activity.java:8508)
at android.app.Activity.performCreate(Activity.java:8472)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1384)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant