O plugin Kotlin deve ser ativado antes
THE ORDER MUST BE SAME :
apply plugin: 'com. android. application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: "androidx . navigation. safeargs"
android developer