Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-3.6.1-6040484-windows Daemon #2: Daemon startup failed
Please check if you installed the Windows Universal C Runtime.
This should not happen under normal circumstances, please file an issue if it does.
直接說結果,我這裏經過百度發現原因是AndroidStudio3.6.1的 build.gradle 的
classpath 'com.android.tools.build:gradle:3.6.1'
導致的,我改成 :
classpath 'com.android.tools.build:gradle:3.5.3'
就好了,當然你也改成其他版本也行。
題外話:
我出現這個問題是因爲我下載了一個AndroidStudio3.6.1,下載完之後新建一個空項目,編譯的時候就報了這個錯,我百度之後找到了解決辦法: https://www.jianshu.com/p/3665d1900847
我之所找到了解決辦法還再寫一篇這個blog 是因爲,(1)方便自己以後學習和發現問題快速找到辦法。(2)這個問題真的不見得好搜出辦法,所以我多寫一篇,別人搜索就能更快的找到解決辦法。