The solution is, instead of
- In Android Studio, create a new project, and select Empty Activity when prompted.
do
1. In Android Studio, create a new project, and select Empty _View_ Activity when prompted.
As of Android Studio Flamingo, starting the project as an "Empty Activity" will not create the file activity_main.xml in the location where this tutorial expects it.
Also, in "MainActivity.kt," make sure the import statement
"import com.example.cameraxapp.databinding.ActivityMainBinding"
does not include "android" in it.