After clean install of Android Studio I always get the error
Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
and
Error:Execution failed for task ':Application:mergeDebugResources'. Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
Java is up to date and the path is set.
I am new to Android Studio, what should I try?
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_HOME
Note:
$ANDROID_HOME
is the location where I put android sdkHope this helps !!
for me it was a virus that corrupted my files from the "build tools" folder. so I uninstalled everything and made a new installation of android studio, SDK and build tools.
I had this problem on lubuntu-16 32bit (and also some other problems too). all of the problems were solved when I updated my system to lubuntu-16 64-bit.
You can run Android Studio as Admin.
I hope it will help you.
To Do So :
Best regards,
Note: $ANDROID_HOME is the location where you put android sdk
Hope this helps !!
Had to uninstall Android studio and delete the following SDK folder in AppData folder Delete .gradle folder delete .AndroidStudio Projects folder
and did a fresh install which solved .