In Android API 21 they added
android.hardware.camera2.params.StreamConfiguration
but for some reason Android Studio can't find it.Also this class (
android.hardware.camera2.params.StreamConfigurationMap
) has a public constructor and yet it says I can't create an instance of it outside its package. Why?!
Tried this:
StreamConfigurationMap map = new StreamConfigurationMap(); //Says can only be instantiated in its package
StreamConfiguration map = new StreamConfiguration(); //can't find StreamConfiguration