title: Passing Data Between Fragments Using Safe Args
body: <p>I'm trying to implement data transfer between fragments using Safe Args, but I'm stuck at the moment of setting Gradle.</p>
  <p>Project Gradle looks like this</p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  plugins {
      id 'com.android.application' version '7.1.3' apply false
      id 'com.android.library' version '7.1.3' apply false
      id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
  }
  
  
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  } 
  </code></pre>
  <p>Module Gradle is like this</p>
  <pre><code>plugins {
      id 'com.android.application'
      id 'org.jetbrains.kotlin.android'
  }
  
  android {
      compileSdk 32
  
      defaultConfig {
          applicationId &quot;com.example.main_fragmentargs&quot;
          minSdk 21
          targetSdk 32
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      kotlinOptions {
          jvmTarget = '1.8'
      }
  
      buildFeatures{
          viewBinding true
      }
  }
  dependencies {
  
      implementation 'androidx.core:core-ktx:1.7.0'
      implementation 'androidx.appcompat:appcompat:1.4.2'
      implementation 'com.google.android.material:material:1.6.1'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      testImplementation 'junit:junit:4.13.2'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  
      implementation &quot;androidx.navigation:navigation-fragment-ktx:2.5.0&quot;
      implementation &quot;androidx.navigation:navigation-ui-ktx:2.5.0&quot;
  
  }
  </code></pre>
  <p>Wherever I enter this line, Gradle starts to swear.</p>
  <p>apply plugin: &quot;androidx.navigation.safeargs.kotlin&quot;</p>
  <p>Similar story with</p>
  <p>def nav_version = &quot;2.3.3&quot;</p>
  <p>classpath &quot;androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version&quot;</p>
  <p>Please tell me how to connect it.</p>