Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native on Android failed to find Build Tools

What causes following problem? Is my Android SDK Version not supported?

Starting JS server...                                                                      Building and installing the app on the device (cd android && gradlew.bat installDebug)...  FAILURE: Build failed with an exception.                                                    * What went wrong:                                                                         A problem occurred configuring project ':app'.                                             > failed to find Build Tools revision 23.0.1        
like image 316
Łukasz Rzeszotarski Avatar asked Oct 15 '15 17:10

Łukasz Rzeszotarski


2 Answers

Probably you need to update your Build Tools.

I faced the problem when I tried to update from the graphic interface, it didn't show the exact minor version, so I couldn't update to it.

It was solved by looking at the available versions from the terminal with:

android list sdk -a 

[...] Packages available for installation or update: 156 1- Android SDK Tools, revision 24.4 2- Android SDK Platform-tools, revision 23.0.1 3- Android SDK Platform-tools, revision 23.1 rc1 4- Android SDK Build-tools, revision 23.0.1 

[...]

And installing the right version with:

android update sdk -a -u -t 4 
like image 114
edur Avatar answered Sep 29 '22 09:09

edur


Just a note - it's possible to get this error because the only version of the build tools you have installed is too new.

I got precisely the error that the OP got (complaining that react-native couldn't find Build Tools revision 23.0.1). When I checked my Android SDK Manager, I saw this:

screenshot showing 23.0.2 "Installed" but 23.0.1 "Not installed"

I'd naively thought that installing the latest version of the Build-tools (23.0.2 at the time of writing) would work, but apparently not. Additionally installing 23.0.1 fixed the problem.

like image 36
Mark Amery Avatar answered Sep 29 '22 10:09

Mark Amery