Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio build error: failed to find Build Tools revision 19.0.0

I'm trying to import a project into Android Studio and I get the following error:

failed to find Build Tools revision 19.0.0.

Looking at the SDK manager, I have the following build tools installed: 17, 18.1.1 and 19.

Here is my build.gradle file:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
    }
}

apply plugin: 'android'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 17
    buildToolsVersion "19.0.0"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 17
    }

    buildTypes {
        release {
            runProguard true
            proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
        }
    }

    productFlavors {
        defaultFlavor {
            proguardFile 'proguard-rules.txt'
        }
    }
}

dependencies {

}

When I change the build version to 17.0.0, it comes back as an error that I don't have 17.0.0. I've compiled other projects using build version 17.0.0.

Any ideas

like image 816
Kristy Welsh Avatar asked Nov 25 '13 18:11

Kristy Welsh


People also ask

How to fix Android Studio error build tools version 31 0 corrupted?

How to solve Android Studio Error: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager. Learn how to solve the exception in Android Studio that warns about the corruption of Build Tools Revision 31.

How to solve Android Studio error 31 0?

How to solve Android Studio Error: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager. | Our Code World How to solve Android Studio Error: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

Why am I getting build tools version error 23 0?

If you have downloaded/updated to 23.0.0 rc1 or higher and you are still facing this issue then you must make sure following changes in your build.gradle (Module:app) file has the compileSdkVersion and buildToolsVersion as in the below example.

How do I install Android Studio on GitHub?

Already on GitHub? Sign in to your account You just need to click on the Install Build Tools 27.0.3 and sync project link and Android Studio will automatically install and sync the project. See the companion solution here. Sorry, something went wrong.


1 Answers

It seems I didn't have the local.properties file in the project folder. Adding it got the project imported (and compiled) successfully.

In the file should be something like:

sdk.dir=C\:\\Users\\kristy.welsh\\AppData\\Local\\Android\\sdk
like image 188
Kristy Welsh Avatar answered Sep 21 '22 12:09

Kristy Welsh