Migrating to AGP 9.2.1: Kotlin build errors I hit and how I fixed them

I recently upgraded an Android project to AGP 9.2.1 and ran into a chain of build errors.

Medium