Official steps result in a gradle error. See current section from chapter attached below.
Based on Gemini results the following line should also be added to the app gradle plugins block before syncing.
id ‘kotlin-kapt’