Skip to content Skip to sidebar Skip to footer

Android Studio 2.2 Giving Error While Creating New Project

I just updated my android studio to Android Studio 2.2 Build #AI-145.3276617, built on September 15, 2016 JRE: 1.8.0_76-release-b03 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrai

Solution 1:

i have solved it gradle is not able to download dependencies. Check your internet connection

use fast internet


Solution 2:

  1. Check Your internet connection - if it is okay
  2. In Android Studio, disable offline mode, if it is enabled
  3. Just refresh gradle

Solution 3:

This errors is related to jcenter . probably jcenter doesn't support your area. I had this error too, just a few hours ago. Add this to your app level build.gradle above the buildTypes

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    mavenCentral() }

and in project level build.gradle use mavenCentral and jcenter both together in all places that you see jcenter, like this:

mavenCentral()
jcenter()

Solution 4:

Don't add some codes to build.gradles or any other files

Just refresh it after connect to internet, Because it want some files to download.

You can also download that files externally but it's huge process, Better do it with android studio.


Solution 5:

add the code blow in your project level build.gradle:

repositories {
    mavenCentral()
}

Post a Comment for "Android Studio 2.2 Giving Error While Creating New Project"