Reputation: 1535
After updating Android studio version to 2.2.2 i face this error for all build tools versions. even i installed some of theme from android studio again but didn't work. I tried all other tools versions.
Failed to find build tools revision
Update
it works good with classpath 'com.android.tools.build:gradle:2.1.0'
but with gradle:2.2.3
still got error.
Upvotes: 3
Views: 14444
Reputation: 179
First, try cleaning and rebuilding your project. You can find Clean project
in Build
tab.
If it doesn't work, use SDK Manager to install build tools version you want. Match build.gradle
file to the version installed. For example, if 26.0.0 version is installed than change your build.gradle
file to match the following:
android {
buildToolsVersion "26.0.0"
...
}
Check documentation for more information.
Also, check offical gradle release notes and check if you have correct versions for all programs. Upgrading Android Studio might help.
Upvotes: 6
Reputation: 2301
Go to your project right click on project and than select
open module setting
than in module section select
your app
and then
build tools revision
and then select your build version
Upvotes: 2