Can't set up Android SDK path?

I’m on the verge of pulling my hair out of my head.

ERROR: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. C:\Users\USERNAME\AppData\Local\Android\Sdk ools\bin\avdmanager

I uninstalled Android Studio, then reinstalled it. Used that SDK path in the External Tools.
SDK: C:\Users\USERNAME\AppData\Local\Android\Sdk
JDK: C:/Program Files/Java/jdk1.8.0_171

I’m aware that there was or still is a bug related to compatability. So I have tried setting up a different tools folder but that didn’t work out either. Everything is a mess now

I would appreciate it if someone could please tell me if I’m even using the right path because I’ve seen some vids where the path of the JDK: C:/Program Files/Android/AndroidStuido/jre or something similar. Any and all help will be appreciated.

You’ll find the paths for SDK, JDK and NDK in Android Studio from “File → Project Structure”.

I made a video on how to set this up with the various SDK paths. Try it start to finish, should help get you set up.