Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm getting mad, after updating android studio 2.2 to 2.3 i can't create and edit any project because gradle get error:

Failed to find build tools revision 26.0.0 or any versions

I downloaded Gradle and build tools from android studio also but didn't work and still say not installed.

My gradle:

apply plugin: 'com.android.application'

android {

    compileSdkVersion 26

    buildToolsVersion "26.0.0"
    defaultConfig {
        applicationId "atys.myapplication"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

dependencies {
}


What I have tried:

Changing Android build tools versions
Posted
Updated 27-Jun-17 15:19pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900