Unity can't find android sdk path

I’m trying to build my unity program to the android platform but every time I try it gives me the “Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for details.” error message. I’ve already done hours worth of research for this but nothing works. I’ve tried uninstalling and reinstalling Android Studio, used an older sdk version, installed every SDK platform, watched countless youtube videos and much more. Does the newest version of unity just not build to android with the current SDK version? I would appreciate any solutions. Thanks!

download and replace tools directory