Android Studio 4.1 gradle 6.7 : get manifestOutputDirectory error

痴心易碎 提交于 2020-12-13 03:01:57

问题


After upgrade to Android Studio 4.1, I've got the following issue when compiling :

> Task :app:processGoogleDebugManifest
get manifestOutputDirectory error

> Task :app:processGoogleDebugResources FAILED
Execution failed for task ':app:processGoogleDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

I don't know how to solve it, thanks for your help


回答1:


It was because of version 4.1.0 I rollback to 4.0.2 and it works : classpath 'com.android.tools.build:gradle:4.0.2'

Hope that they will correct it




回答2:


Click Android Studio->Preperences->Experimental then you have to uncheck - Only sync the active variant.



来源:https://stackoverflow.com/questions/64435636/android-studio-4-1-gradle-6-7-get-manifestoutputdirectory-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!