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

后端 未结 11 902
眼角桃花
眼角桃花 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条回答
  • This is a known bug reported here --> https://code.google.com/p/android/issues/detail?id=188627

    The workaround on Mac is to reboot your computer.

    0 讨论(0)
  • 2020-11-27 16:00

    I had the same issue whilst running Android Studio 1.5.1 for Windows 8.1 (64 bit), and what I did to solve the problem was by adding the following two system environment variables:

    SLAVE_AAPT_TIMEOUT = 30
    JAVA_HOME = C:\Program Files\Java\jdk1.8.0_65
    

    (Please note: The path for the JAVA_HOME system environment variable is dependant on where your JDK is located and that the version of your JDK may differ from the example above).

    0 讨论(0)
  • 2020-11-27 16:04

    I had this problem on Windows 8.1 64 bits and what ended up solving everything was running gradle in the command line in debug mode, on the project folder:

    gradlew -d assembleDebug
    

    Running without the -d flag had the same problem.

    After running the first time, everything was ok, I could even clean and rebuild my project.

    0 讨论(0)
  • 2020-11-27 16:08

    I had the same problem with Debian Jessie for AMD64. I did this, and it works:

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
    
    0 讨论(0)
  • 2020-11-27 16:08

    I uninstalled 1.2 and installed 1.1, but it did't work.

    Because I used local SDK installed previously, I uninstalled and reinstalled 1.1 and installed SDK to new path.

    After I used SDK in new path, I don't have those errors any more.

    And I upgraded Android Studio to 1.2, and also I don't have errors.

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