The current robolectric version (4.5) used for the Android camera plugin does not support configuring tests to run on >= SDK 31. However, there are a number of tests in the plugin that configure tests this way, e.g. ResolutionFeatureTest.java. The robolectric version should be bumped to allow these tests to run.
Having tried to bump it experimentally, I know that this causes errors concerning unsupported Mockito operations, and these will have to be fixed as well to land the bump.
Dependabot may try to bump this version and create a PR, to which this issue should be linked.
The current robolectric version (4.5) used for the Android camera plugin does not support configuring tests to run on >= SDK 31. However, there are a number of tests in the plugin that configure tests this way, e.g. ResolutionFeatureTest.java. The robolectric version should be bumped to allow these tests to run.
Having tried to bump it experimentally, I know that this causes errors concerning unsupported Mockito operations, and these will have to be fixed as well to land the bump.
Dependabot may try to bump this version and create a PR, to which this issue should be linked.