I'm using android studio 3.1.3, and gradle version 4.4. I'm a beginner to android development but I can't seem to be able to get android studio to build successfully. I get a Java compiler error stating: "java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details. ".
This happens when android studio couldn't connect to aapt2(possibly you deleted it)
One Solution would be is to close the android studio, delete the .gradle folder in your project. then start the android studio as an administrator or with sudo incase of linux.
2.2nd Solution Other would be is to redownload the SDK then
sudo chmod 777 -R $ANDROID_HOME
Where $ANDROID_HOME is the location of SDK
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.