I want to capture photos with fixed resolution (i.e. 1200x1600) using CameraX library.
1200x1600
So according to documentation I can set target resolution for
The android documentation say this:
You cannot set both target aspect ratio and target resolution on the same use case. Doing so will throw an IllegalArgumentException when building the config object.
So decide what is mor important for you and choose only one.