Например:
int width = 720;
int height = 1280;
Я хочу создать Camera.Size.
Camera.Size size = new Camera.Size(width,height);
Но у него есть некоторая ошибка.
No enclosing instance of type Camera is accessible. Must qualify the allocation with an enclosing instance of type Camera (e.g. x.new A() where x is an instance of Camera).