Android Studio 3.0 - No server to serve request

2020-01-25 10:51发布

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?

14条回答
祖国的老花朵
2楼-- · 2020-01-25 11:02

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:

  • Re-download the sdk (recommended)

followed by-

  • sudo chmod 777 -R $ANDROID_HOME

Note: $ANDROID_HOME is the location where I put android sdk

Hope this helps !!

查看更多
3楼-- · 2020-01-25 11:02

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.

查看更多
beautiful°
4楼-- · 2020-01-25 11:04

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.

查看更多
孤傲高冷的网名
5楼-- · 2020-01-25 11:07

You can run Android Studio as Admin.

I hope it will help you.

To Do So :

  1. Right click
  2. choose Run as Administrator

Best regards,

查看更多
在下西门庆
6楼-- · 2020-01-25 11:08

sudo chmod 777 -R $ANDROID_HOME

Note: $ANDROID_HOME is the location where you put android sdk

Hope this helps !!

查看更多
手持菜刀,她持情操
7楼-- · 2020-01-25 11:09

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 .

查看更多
登录 后发表回答