Surface View not working with api 34

The component Surface View makes the app crashes after the last update to SDK34. Before that it was working just fine. I need that component in my app, how can it be resolved?

I was using that component in my OCR app to continue capture images and detect text with the “save preview” option.

Any help appreciated

Create a bug report and add all necessary information

#feedback:bugs

Taifun