Kotlin and Android Development featuring Jetpack: Unable to run sample code with Android Studio 2022.2.1

Something you can try quickly to see if it helps: upgrade your appcompat library to 1.6.1:

implementation 'androidx.appcompat:appcompat:1.6.1'

Based on what I’m seeing here, you are definitely not alone in facing this issue with an Android app.