Error building: Timed out while Waiting for slave aapt process

Asked

Viewed 289 times

1

I’d like to know how I can make that mistake when I try to create a new app. The error is as follows: it loads everything right, but when it will load the Gradle it gives error and the screen is infinitely in "Waiting for build to Finish". In the Gradle Console is written as follows:

Exception in thread "queued-resource-processor_5" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at C:\Users\JP\AppData\Local\Android\Sdk\build-tools\26.0.2\aapt2.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds
        at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:196)
        at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56)
        at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:213)
        at java.lang.Thread.run(Thread.java:745)

Do you know how to solve it? (Note: Firewall has already been shut down)

  • This happens with every new project or just this?

  • With every project

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.