0

I am trying to build a android app using gradle build .but i am getting the following error .

10:48:36.851 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred configuring root project 'workspace'.    
10:48:36.851 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve all dependencies for configuration ':classpath'.

10:48:36.852 [ERROR] [org.gradle.BuildExceptionReporter]    > Could not resolve com.android.tools.build:gradle:1.0.0.

10:48:36.852 [ERROR] [org.gradle.BuildExceptionReporter]      Required by:
10:48:36.853 [ERROR] [org.gradle.BuildExceptionReporter]          :workspace:unspecified

10:48:36.854 [ERROR] [org.gradle.BuildExceptionReporter]       > Could not GET 
'https://jcenter.bintray.com/com/android/tools/build/gradle/1.0.0/gradle-1.0.0.pom'.

10:48:36.854 [ERROR] [org.gradle.BuildExceptionReporter]          > peer not authenticated

My global build.gradle will looks like this.

apply plugin: 'android'
buildscript {    
repositories {    
    mavenCentral()  
}   

dependencies {
    classpath 'com.android.tools.build:gradle:0.10.+'
}
}

ext.multiarch=false

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
for (subproject in getProjectList()) {
    compile project(subproject)
}

}

and inside my application i have the following gradle file.

apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.example.parthibans.myapplication"
    minSdkVersion 15
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}   
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}

pls anyone help me...

sakthi
  • 11
  • 7

0 Answers0