Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidStudio: Failed to sync Install build tools

Going crazy with this error from about a couple of hours.

The error is:

failed to find Build Tools revision 23.0.0 rc1

But I think to have all update (also the release candidate!)

This is the image: thank you.enter image description here

like image 362
sineverba Avatar asked Jun 05 '15 11:06

sineverba


4 Answers

Go to File > Project Structure > Select Module > Properties you will landing to this screenenter image description here

Select Build Tools Version same as version selected in Compile Sdk Version.

Hope this will resolve your issue.

like image 53
sKhan Avatar answered Nov 13 '22 00:11

sKhan


I could fix it by changing it to

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
}

in build.gradle file

like image 27
Boe-Dev Avatar answered Nov 12 '22 22:11

Boe-Dev


I had the same issue, with Build Tools revision 24.0.0-rc4. The fix was to install the package using the command line.

~/Android/Sdk| ls -1 build-tools/
23.0.3
24.0.0-rc4
~/Android/Sdk| ./tools/android list sdk -a | grep "SDK Build-tools"
   4- Android SDK Build-tools, revision 24 rc4
   5- Android SDK Build-tools, revision 23.0.3
   6- Android SDK Build-tools, revision 23.0.2
   7- Android SDK Build-tools, revision 23.0.1
   8- Android SDK Build-tools, revision 23 (Obsolete)
   ...
~/Android/Sdk| ./tools/android update sdk -a -u -t 4
   ...
~/Android/Sdk| ls -1 build-tools/
23.0.3
24.0.0-preview
24.0.0-rc4

(note that 4 in the android update sdk command above refers to the preceding list's number for the desired version, found at the beginning of the line).

The directory build-tools/24.0.0-rc4/ had been created when I installed the package from Android Studio's SDK Manager. The above method created build-tools/24.0.0-preview/.

My app-level build.gradle script uses the -rc4 version, as specified in the setup guide:

android {
    compileSdkVersion 'android-N'
    buildToolsVersion '24.0.0-rc4'
}

I do not understand the correlation between -rc4 and -preview or why specifying 24.0.0-rc4 picks up the -preview package, but it did fix the issue for me.

like image 11
mynyml Avatar answered Nov 12 '22 23:11

mynyml


I have the same problem. i have solved this issue by the following point.

First one is go to inside build.gradle app file and change this

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0 rc2"
}

with this one

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0"
}

I hope this will solve your issue.

like image 5
Hakim Khan Avatar answered Nov 13 '22 00:11

Hakim Khan