Sdkmanager path not right

Make sure your ANDROID_HOME environment variable is pointing correctly to your android sdk folder.
Before running SetupAndroid.bat delete the tools folder in your sdk installed directory ( the script will regenerate the folder again)
Inside your sdk folder there is a build tools folder and inside that folder are the version you have installed. Go inside each of them and rename D8.bat to DX.bat, also rename D8.jar to DX.jar inside the lib folder.
good luck