Reputation: 143
I updated the android stadio to version '3.2.1' and the android stadio asked me to update something like tools.build:gradle
to 3.2.1
and i did,
Now the gradle version is 4.6 and it says Failed to find Build Tools revision 28.0.3
.
i tried to install it but some error occur that informed 'the packages are not available for download'.
what the hell wrong with it? wish i never updated it
Upvotes: 4
Views: 25995
Reputation: 1156
I have the same problem and fixed it this way:
Upvotes: 1
Reputation: 1683
I got stuck with the same problem. After digging in code's log it says sdk doesn't have permission or that it was readable only. So I open Android Studio in administrator mode(right click on the icon-> run as administrator) and then I could install build Tools revision. This works for me.
Upvotes: 1
Reputation: 75778
Read Build Tools, Revision 28.0.3 (September 2018)
You should always keep your Build Tools component updated by downloading the latest version using the Android SDK Manager. If you're using Android plugin for Gradle 3.0.0 or higher, your project automatically uses a default version of the build tools that the plugin specifies.
android {
buildToolsVersion "28.0.3"
...
}
Your gradle-wrapper.properties
will
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
Your build.gradle
classpath will
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha12'
}
FYI
It will be better if you use
android {
buildToolsVersion "28.0.2"
...
}
Finally, Clean-Rebuild-Restart IDE
Upvotes: 3