After clean install of Android Studio I always get the error
Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server t
I already had latest version of build-tool installed, so I just had to give permission to Android_home:
build-tool
chmod 777 -R $ANDROID_HOME
and build again. This worked for me.