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

后端 未结 11 1031
眼角桃花
眼角桃花 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 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).

提交回复
热议问题