-
Notifications
You must be signed in to change notification settings - Fork 28.5k
[Camera] Can not use the camera plugin with Android API level 30 #69883
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
Comments
@Max-Might Since I don't have a physical device targeting api 30, I am not sure if the issue you are facing is only on physical device. Can you check if on emulator too you get same error ? |
@darshankawar This is strange. CameraDevice.createCaptureSession(List<Surface> outputs,
CameraCaptureSession.StateCallback callback,
Handler handler); And in the def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"] |
@Max-Might Can you try running |
I had encountered the same issue as @Max-Might
Instead, I directly declared the Camera.java file in the camera package. Just did pull request |
Can confirm that issue. Happens to me as soon as the 'compileSdkVersion 30' is used.
running on: |
i too got same issue. any solution ?? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
The camera plugin can not be used with Android API level 30 because it uses a deprecated method and warnings are treated as errors.
Steps to Reproduce
build.gradle
file like to API level 30:Logs
The build fails with this error:
The text was updated successfully, but these errors were encountered: