React Native run-android Build failed

I want start my react native app, but everytime when i try this i have some error:

//ERROR PHOTO//


I used this guide for configurated Android SDK, but I didn’t have some parameters when configuring it in: SDK Manager -> SDK Tools
I haven’t:

  1. GPU Debugging Tools
  2. Android SDK Tools
  3. And i haven’t Folder Support Repository

//ANDROID SDK PHOTO//


And this my Path settings screen

//PATH PHOTO 1//

//PATH PHOTO 2//

//PATH PHOTO 3//

Answer

I ran into the same issues as you does. My solution is to install JDK according to the documentation

enter image description here

choco install -y nodejs.install openjdk8

After that, run again the project and it works!