Unity Android Build and Run Error, HELP PLEASE!

im new to unity, so i barely know how it all works.

i made a simple roulette game from unity and i tried to build it in android but it didnt work

i set up every sdk, jdk, ndk all stuff and i searched up any solutions posted in the internet that might
help out my situation but none worked.

I downgraded sdk, reinstalled sdk, downgraded jdk to 8, and installed every single sdk platforms,
exchanged sdk>tools to 25.25 tools, everything. Still error occurred.

This is the error message i get from unity build process.

Observed package id ‘tools’ in inconsistent location ‘C:\Users\USER\AppData\Local\Android\Sdk_tools’ (Expected ‘C:\Users\USER\AppData\Local\Android\Sdk ools’)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_152\bin\java.exe -classpath “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx2048m” “assembleRelease”

Error building Player: 2 errors

Build completed with a result of ‘Failed’
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Im quite frustrated. I really hope i could run my game on my android phone.
Thanks for all comments

Unity getting a wrong folder as it is Expecting Android\SDK ools but getting Android\SDK_tools, correct your folder hierarchy

Aditya, I have exactly the same problem, how is the hierarchy of those folders corrected? Can you explain me, please?

Install the newest Android SDK from Android Studio worked for me

Changing the Build System from ‘Gradle’ to ‘Internal’ fixed this error. Here's a snapshot of the Build Settings