This commonly occurs when the makers set the stock camera as the default settings, and it stops Gcam to works since it's predefined to works as the default. For that, all you need to enable Camera 2 API on your device to run Gcam smoothly.