Android Studio fails to build new project, timed out while wating for slave aapt process

后端 未结 11 900
眼角桃花
眼角桃花 2020-11-27 15:21

I\'ve installed Android Studio 1.2, and created a new project. When I attempt to build, it hangs. This is in the Gradle Console, along with about 20 other copies, with diffe

相关标签:
11条回答
  • 2020-11-27 15:46

    If you are running on a Linux x64 machine you probably miss some required libraries. The offical sdk guide states:

    Required libraries for 64-bit machines:

    If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0

    If you are running 64-bit Fedora, the command is:

    sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

    of course don't forget to

    sudo apt-get update
    

    first.

    0 讨论(0)
  • 2020-11-27 15:51

    Check your firewall if it is coming in your way. Disabling my firewall works for me but i don't know if it's the right fix.

    0 讨论(0)
  • 2020-11-27 15:53

    Downgrading Build Tools rescued me.

    0 讨论(0)
  • 2020-11-27 15:55

    I had this problem and what was missing were a library to be installed on the SDK. Just installing the correct library immediately solved the problem. In my case was the Android Support Library, as I was creating a navigation drawer. The errors shown in the gradle console didn't give me a clue for the solution, and didn't helped me at all. Click on SDK manager, and click on the tab SDK Tools, check "Android Support Library" and click apply.

    0 讨论(0)
  • 2020-11-27 15:55

    By pausing the antivirus I don't have anymore that problem, or better by making a rule at the antivirus in order to accept a given '.class' filename recognized as trojan, then banned at compile-time.

    0 讨论(0)
  • 2020-11-27 15:56

    I had the same problem with CentOS 6.5. Before this error, I found the cause of the error, as follows.

    AAPT err(Facade for 1129807373): xxx/aapt: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by xxx/lib64/libc++.so)
    

    libc.so.6: version `GLIBC_2.14' not found” . The highest version of CentOS 6.5 is 2.12, and we need to upgrade to 2.14.

    Display the installed glibc version:

    # rpm -qa | grep glibc
    

    To download the corresponding RPM package. -> ftp.redsleeve.org/pub/steam/

    Install the RPM package as follows:

    # rpm -Uvh glibc-2.15-60.el6.x86_64.rpm glibc-common-2.15-60.el6.x86_64.rpm glibc-devel-2.15-60.el6.x86_64.rpm glibc-headers-2.15-60.el6.x86_64.rpm --nodeps --force
    
    0 讨论(0)
提交回复
热议问题