pvasa / cameraview-ex

Easy Android camera integration, advanced features.
Apache License 2.0
230 stars 49 forks source link

UnsupportedOperationException No supported camera found for facing 1 #222

Closed AhmedMousa7 closed 4 years ago

AhmedMousa7 commented 4 years ago

Update i found that is issue caused when use targetSdkVersion 29

In some devices i faced this issue in both versions (3.4.3 and 3.5.5-alpha) that i cannot capture any photos or video i got those errors in log but the camera opened correctly

Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.hal1.packagelist"

and the exception passed to addCameraErrorListener is UnsupportedOperationException No supported camera found for facing 1 Failed to open camera with id 'default' and note that the permissions required for opening the camera and storage is enabled

Expected behavior i can capture the photos or videos

Using ProGuard

Device :

Branch Name (if using as a local module)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closed due to inactivity.