I have mine fixed by following the link shared
https://github.com/flutter/flutter/issues/169252#issuecomment-2963248617
What I did exactly:
I moved the sdk under C:\Users\Kojo Mensah\AppData\Local\Android to a folder that has no space in it name. eg: C:\src\Android\sdk.
The actual issue was because of the dir \Kojo Mensah\, it has space within it.
After locating the sdk, I updated the sdk path in Android Studio and also added the path to my systems environment.
How added the path the environment
variable=ANDROID_HOME
value=C:\src\Android\sdk
I restarted my IDE and tried and new build, hurrayyyyy! there was success
Thanks for reading this.