java.lang.IllegalStateException: CameraX not initialized yet
I'm pretty sure I found the problem. Did you add Camera2 to your dependencies? I left it out thinking it wasn't necessary, but it's in the guide. I added it and that error stopped.
def camerax_version = "1.0.0-alpha01"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"