Hi everyone, I need help to set up Navigation safeargs in my kotlin project

Here are details of my gradle version:


my top level file:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

plugins {
id ‘com.android.application’ version ‘7.3.1’ apply false
id ‘com.android.library’ version ‘7.3.1’ apply false
id ‘org.jetbrains.kotlin.android’ version ‘1.7.20’ apply false

and here is part of my gradle project info :

plugins {
id ‘com.android.application’
id ‘org.jetbrains.kotlin.android’
id ‘kotlin-kapt’

android {
namespace ‘com.time.android.exampletrivia’
compileSdk 33

defaultConfig {
    applicationId "com.time.android.exampletrivia"
    minSdk 19
    targetSdk 33
    versionCode 1
    versionName "1.0"

your help will be greatly appreciated. thank you