After clean install of Android Studio I always get the error
Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server t
This error occurred because you might have accidentally remove the executable flag from aapt2 which is located in $ANDROID_HOME/build-tools/27.0.2.
Try this:
followed by-
sudo chmod 777 -R $ANDROID_HOMENote:
$ANDROID_HOME is the location where I put android sdk
Hope this helps !!