Android Studio 3.0 - No server to serve request

后端 未结 15 1575
北恋
北恋 2020-11-28 14:55

After clean install of Android Studio I always get the error

Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server t

相关标签:
15条回答
  • 2020-11-28 15:48

    If it is possible for you, please delete the build folder of project and test building android project with any other version of build-tools.

    in my case, build-tools version: 26.0.2 had problem, I tested with 27.0.3 and it solved my problem unbelievably :)

    0 讨论(0)
  • 2020-11-28 15:48

    If you are on Windows 10 (sigh), close android studio and then right click on android studio icon and select 'Run as Administrator' from 'more' menu.

    Build again.

    0 讨论(0)
  • 2020-11-28 15:49

    For me, this is the side effect of another issue that I haven't root caused yet. Every once in a while, I get aapt2 failures because some file /tmp/ld-linux-x86-64.so.2 is "busy", with the following error message.

    AAPT err(Facade for 1745790725): cp: cannot create regular file '/tmp/ld-linux-x86-64.so.2': Text file busy
    Slave 1745790725 failed to start java.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at ~/.../android-sdk-linux/build-tools/27.0.3/aapt2) are not corrupted.
    

    When this happens I just rm that file and everything starts working again. I suspect this might be caused by me actually having two installs of adb (one through ubuntu via apt and one from Android studio) but I haven't had time to dive deeper.

    0 讨论(0)
提交回复
热议问题