title: How to solve dependency issue?
body: <p>I am learning android studio and trying to start with a new project but I am having some dependencies issues</p>
  
  <pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.0.2.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not resolve androidx.appcompat:appcompat:1.0.2."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.fragment:fragment:1.0.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not resolve androidx.fragment:fragment:1.0.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.0.2.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not resolve androidx.appcompat:appcompat:1.0.2."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download core.aar (androidx.core:core:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download core.aar (androidx.core:core:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download collection.jar (androidx.collection:collection:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download collection.jar (androidx.collection:collection:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download core-common.jar (androidx.arch.core:core-common:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download core-common.jar (androidx.arch.core:core-common:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debug/compileClasspath': Could not download annotation.jar (androidx.annotation:annotation:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debug/compileClasspath&amp;#39;: Could not download annotation.jar (androidx.annotation:annotation:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.test.ext:junit:1.1.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve androidx.test.ext:junit:1.1.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.test.espresso:espresso-core:3.1.1.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve androidx.test.espresso:espresso-core:3.1.1."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.0.2.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve androidx.appcompat:appcompat:1.0.2."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.fragment:fragment:1.0.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve androidx.fragment:fragment:1.0.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.0.2.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve androidx.appcompat:appcompat:1.0.2."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download core.aar (androidx.core:core:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download core.aar (androidx.core:core:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download collection.jar (androidx.collection:collection:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download collection.jar (androidx.collection:collection:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download core-common.jar (androidx.arch.core:core-common:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download core-common.jar (androidx.arch.core:core-common:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not download annotation.jar (androidx.annotation:annotation:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugAndroidTest/compileClasspath&amp;#39;: Could not download annotation.jar (androidx.annotation:annotation:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.0.2.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve androidx.appcompat:appcompat:1.0.2."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve androidx.fragment:fragment:1.0.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve androidx.fragment:fragment:1.0.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.0.2.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve androidx.appcompat:appcompat:1.0.2."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0.
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not resolve androidx.versionedparcelable:versionedparcelable:1.0.0."&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download core.aar (androidx.core:core:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download core.aar (androidx.core:core:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download collection.jar (androidx.collection:collection:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download collection.jar (androidx.collection:collection:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download lifecycle-runtime.aar (androidx.lifecycle:lifecycle-runtime:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download lifecycle-common.jar (androidx.lifecycle:lifecycle-common:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download core-common.jar (androidx.arch.core:core-common:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download core-common.jar (androidx.arch.core:core-common:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download lifecycle-viewmodel.aar (androidx.lifecycle:lifecycle-viewmodel:2.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
      Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not download annotation.jar (androidx.annotation:annotation:1.0.0)
      &lt;a href="Unable to resolve dependency for &amp;#39;:app@debugUnitTest/compileClasspath&amp;#39;: Could not download annotation.jar (androidx.annotation:annotation:1.0.0)"&gt;Show Details&lt;/a&gt;
      Affected Modules: &lt;a href="openFile:C:/Users/ihass/AndroidStudioProjects/MyApplication3/app/build.gradle"&gt;app&lt;/a&gt;   
  </code></pre>