You need to install the build tools as well (search for build). There are other components that might be needed. It will be better to find out which component is causing the problems.
I connected samsung galaxy thru ip.
Usb
Device is visible in windows but once ba bridge is open the
Compilation gives " error no device "
Also designer connection doesn't connect.
******
Last try was over Lenovo thinkpad
Formatted and installed w7 prof x86
Installation steps followed carefully
Sdk manager installed via dos command android-28 and path to .jar defined.
Avd machines configured .
Once avd machine started or bxa bridge ip declared (ping tested)
Connected icon never is shown.
Compilation in any case shows error " no device is connected ".
*******