This class android.hardware.camera2.CameraCaptureSession used in CameraHelp is defined in android.hardware.camera2.CameraCaptureSession as a hidden class. The defination is
/**
* Temporary for migrating to Callback naming
* @hide
*/
public static abstract class StateListener extends StateCallback {}
You can replace it with StateCallback