0

I created a react-native project now when i want to start it by command 'react-native run-android', i give an error:

Failed to find Build Tools revision 26.0.3

this is the full error:

enter image description here

Ravi
  • 34,851
  • 21
  • 122
  • 183

1 Answers1

-1

You'll need to ensure that you have the Build Tools version.

Open Android Studio and the SDK Manager can be accessed from the "Welcome to Android Studio" screen. Click on "Configure", then select "SDK Manager".

Select the "SDK Tools" tab and check the box next to "Show Package Details". Look for and expand the "Android SDK Build-Tools" entry, then make sure that 26.0.3 is selected.

Take a look here in the Android section and make sure you've set everything up correctly:

https://facebook.github.io/react-native/docs/getting-started.html

Hope that helps!

JRK
  • 3,686
  • 1
  • 13
  • 19
  • thanks, i went to 'SDK Tools' and i looked for '26.0.3' but it was not there. how can i add it to my SDK tools? –  Sep 11 '18 at 11:45
  • Does the window look like this: https://facebook.github.io/react-native/docs/assets/GettingStartedAndroidSDKManagerSDKToolsWindows.png - just tick the 26.0.3 and hit 'Apply'. If that fails you can build the project in Android Studio and it should give you the option on the error to download the missing build tools – JRK Sep 11 '18 at 11:51
  • no, it does not. this is my window: http://s8.picofile.com/file/8336980468/Untitled.png –  Sep 11 '18 at 12:00
  • What SDK Platforms do you have? (The tab to the left of SDK Tools) – JRK Sep 11 '18 at 12:08