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
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: 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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With