Exception in thread "queued-resource-processor_228" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at C:\Users\Elizabeth\AppData\Local\Android\Sdk\build-tools\27.0.3\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:178)
at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:250)
at java.lang.Thread.run(Thread.java:745)
答案 0 :(得分:0)
由于我不使用防病毒软件,因此我停止了该应用程序的编译,并从任务管理器关闭了android studio。然后,我重新打开了项目并开始编译应用程序,几分钟后一切顺利。