@Erel never asked you to do all of those changes, JUST to re-install the Android SDK.
I would start again following the instructions at
https://www.b4x.com/b4a.html , NOT doing Anything beyond those instructions. (except using 7-Zip for extracts is necessary, not just recommended)
[EDIT]
How you may have affected other packages besides B4A is beyond the scope of this forum!