I would install the sdk into a folder not on C:
Additional i would use a path without spaces.
So. Uninstalling sdk, installing sdk to new folder, setup your sdk-path in windows.
Setup the right path in b4a.
Alternative could be uninstalling andoid studio first. Then, when installing you use the method wíthout installing the sdk (use your own installed version).