title: Could not find android.arch.navigation:navigation-safe-args-gradle-plugin:2.3.5.?
body: <p>I am using android navigation components but it is giving an error A problem occurred configuring root project 'AndroidCodingChallenge'.</p>
  <blockquote>
  <p>Could not resolve all artifacts for configuration ':classpath'.
  Could not find android.arch.navigation:navigation-safe-args-gradle-plugin:2.3.5.
  Searched in the following locations:</p>
  </blockquote>
  <p>below my app.gradle</p>
  <pre><code>plugins {
      id 'com.android.application'
      id 'kotlin-android'
  }
  apply plugin: 'androidx.navigation.safeargs.kotlin'
  apply plugin: 'kotlin-kapt'
  apply from: '../commons.gradle'
  
  android {
      compileSdkVersion 30
      buildFeatures {
  
          dataBinding = true
  
          // for view binding:
          // viewBinding = true
      }
  
      buildToolsVersion &quot;29.0.3&quot;
  
      defaultConfig {
          applicationId &quot;com.example.androidcodingchallenge&quot;
          minSdkVersion 21
          targetSdkVersion 30
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
          vectorDrawables{
              useSupportLibrary = true
          }
  
          multiDexEnabled true
      }
  
      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 = JavaVersion.VERSION_1_8.toString()
      }
  }
  
  dependencies {
      implementation project(':data')
      implementation project(':domain')
      implementation project(':presentation')
      implementation project(':remote')
      implementation project(':cache')
      implementation project(':common')
      implementation project(':device')
  
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot;
      implementation 'androidx.core:core-ktx:1.3.2'
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation &quot;com.google.android.material:material:$material_version&quot;
  
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  
      implementation 'androidx.cardview:cardview:1.0.0'
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  
      //navigation component
  //    implementation &quot;androidx.navigation:navigation-fragment-ktx:2.3.2&quot;
  //    implementation &quot;androidx.navigation:navigation-ui-ktx:2.3.2&quot;
  
      // UI
      implementation &quot;com.github.bumptech.glide:glide:$glide_version&quot;
      kapt &quot;com.github.bumptech.glide:compiler:$glide_version&quot;
  
      // Ktx
      implementation &quot;androidx.lifecycle:lifecycle-livedata-ktx:2.3.0&quot;
      implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0'
      implementation &quot;androidx.fragment:fragment-ktx:1.3.0&quot;
  
      // Navigation
      implementation &quot;android.arch.navigation:navigation-fragment-ktx:$version_navigation&quot;
      implementation &quot;android.arch.navigation:navigation-ui-ktx:$version_navigation&quot;
  
      //viewpager2
      implementation &quot;androidx.viewpager2:viewpager2:1.0.0&quot;
  
      implementation 'com.thoughtbot:expandablerecyclerview:1.3'
      implementation 'com.thoughtbot:expandablecheckrecyclerview:1.4'
  
      //indicator
      implementation 'me.relex:circleindicator:2.1.4'
      //lottie
      implementation &quot;com.airbnb.android:lottie:3.4.1&quot;
      //datastore
      implementation &quot;androidx.datastore:datastore-preferences:1.0.0-alpha06&quot;
  
      implementation 'androidx.hilt:hilt-navigation-fragment:1.0.0-alpha03'
  
      //LeakCanary
      debugImplementation &quot;com.squareup.leakcanary:leakcanary-android:$leakcanary_version&quot;
  
      //Retrofit
      implementation &quot;com.squareup.retrofit2:retrofit:$retrofit_version&quot;
      implementation &quot;com.squareup.retrofit2:converter-gson:$retrofit_version&quot;
      implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
  
      //multidex
      implementation 'com.android.support:multidex:1.0.3'
  
  }
  </code></pre>
  <p>below my commons.gradle</p>
  <pre><code>apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-android-extensions'
  apply plugin: 'kotlin-kapt'
  apply plugin: 'dagger.hilt.android.plugin'
  
  androidExtensions {
      experimental = true
  }
  
  android {
  //    compileSdkVersion Versions.compileSdkVersion
  //    buildToolsVersion Versions.buildTool
  //    defaultConfig {
  //        minSdkVersion Versions.minSdk
  //        targetSdkVersion Versions.targetSdk
  //        versionCode Releases.versionCode
  //        versionName Releases.versionName
  //        vectorDrawables.useSupportLibrary = true
  //    }
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
  
      kapt {
          javacOptions {
              // Increase the max count of errors from annotation processors.
              // Default is 100.
              option(&quot;-Xmaxerrs&quot;, 500)
          }
          // Configure kapt to correct error types for Hilt
          correctErrorTypes true
      }
  
      buildFeatures{
          dataBinding = true
      }
  
      kotlinOptions {
          jvmTarget = &quot;1.8&quot;
      }
  
      lintOptions {
          abortOnError false
      }
  
      compileOptions {
          targetCompatibility 1.8
          sourceCompatibility 1.8
      }
  }
  
  dependencies {
      //Loads packaged libraries in the libs folder
      implementation fileTree(dir: 'libs', include: ['*.jar'])
  
  //    implementation KotlinLibraries.kotlin
  //    implementation AndroidLibraries.coreKtx
  //
  //    implementation Libraries.hilt
  //    implementation Libraries.hiltJetpack
  //    kapt Libraries.hiltCompiler
  //    kapt Libraries.hiltJetpackCompiler
  //
  //    // For instrumentation tests
  //    androidTestImplementation Libraries.hiltAndroidTest
  //    kaptAndroidTest Libraries.hiltAndroidTestCompiler
  //
  //    // For local unit tests
  //    testImplementation Libraries.hiltAndroidUnitTest
  //    kaptTest Libraries.hiltAndroidUnitTestCompiler
  //
  //    implementation TestLibraries.androidTestRunner
  //    implementation TestLibraries.junit
  //    implementation TestLibraries.espresso
  //    implementation TestLibraries.espressoContrib
  
      // Concurrency
      implementation &quot;io.reactivex.rxjava2:rxkotlin:$rxkotlin_version&quot;
      implementation &quot;io.reactivex.rxjava2:rxandroid:$rxandroid_version&quot;
  
  
      //Hilt
      implementation &quot;com.google.dagger:hilt-android:$hilt_version&quot;
      kapt &quot;com.google.dagger:hilt-android-compiler:$hilt_version&quot;
      implementation &quot;androidx.hilt:hilt-lifecycle-viewmodel:$hilt_androidx_version&quot;
      kapt &quot;androidx.hilt:hilt-compiler:$hilt_androidx_version&quot;
  
      // Utils
      implementation &quot;com.jakewharton.threetenabp:threetenabp:$threetenabp_version&quot;
  
  
  }
  </code></pre>
  <p>below build.gradle where I have declare buildpaths</p>
  <pre><code>buildscript {
      ext{
          kotlin_version = &quot;1.4.20&quot;
          version_navigation = &quot;2.3.5&quot;
          hilt_version = '2.31.2-alpha'
  
          version_navigation = &quot;2.3.5&quot;
          version_lifecycle_extensions = &quot;2.2.0&quot;
          lifecycle_version = &quot;2.2.0&quot;
          hilt_androidx_version = &quot;1.0.0-alpha03&quot;
  
          material_version = &quot;1.3.0&quot;
  
          coroutines_version = &quot;1.4.1&quot;
  
          junit_version = &quot;4.13&quot;
  
          retrofit_version = &quot;2.9.0&quot;
          okHttp_version = &quot;4.9.0&quot;
          moshi_converter_version = '2.9.0'
          moshi_version = '1.11.0'
  
          mockwebserver_version = &quot;4.9.0&quot;
          robolectric_version = &quot;4.4&quot;
          mockito_version = &quot;3.5.15&quot;
          google_truth_version = &quot;1.0&quot;
          coroutines_test = &quot;1.3.1&quot;
  
          room_version = &quot;2.3.0&quot;
  
          threetenabp_version = &quot;1.2.4&quot;
          leakcanary_version = &quot;2.4&quot;
          timber_version = &quot;4.7.1&quot;
  
          glide_version = &quot;4.11.0&quot;
          androidsvg_version = &quot;1.4&quot;
  
          rxkotlin_version = &quot;2.4.0&quot;
          rxandroid_version = &quot;2.1.1&quot;
  
          google_services_version = &quot;4.3.8&quot;
      }
  
      repositories {
          google()
          jcenter()
          mavenCentral()
      }
      dependencies {
          classpath &quot;com.android.tools.build:gradle:4.1.1&quot;
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21&quot;
          classpath &quot;android.arch.navigation:navigation-safe-args-gradle-plugin:$version_navigation&quot;
  
          classpath &quot;com.google.dagger:hilt-android-gradle-plugin:$hilt_version&quot;
  
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
  
          classpath &quot;com.google.gms:google-services:$google_services_version&quot;
          classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          flatDir {
              dirs 'libs'
          }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p>what I have tried following answers <a href="https://stackoverflow.com/questions/50284338/could-not-find-androidx-navigationsafe-args-gradle-plugin1-0-0-alpha01">Could not find androidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01</a> and it did not help I want to know what I am missing</p>