在我的 android 项目上设置 OpenCV 后,执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生构建失败

After setup OpenCV on my android project build failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

Build ProjectDebug & 运行 出现错误

Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.1.3-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.

&

Dependent features configured but no package ID was set.

My Android studio project screenshot here

尝试过: 无效并重新启动, 清理项目

使用: Windows 10 & distributionUrl=https://services.gradle.org/distributions/gradle-6.5-all.zip

最新版OpenCV需要安装。

https://medium.com/@kashafahmed/a-proper-beginners-guide-to-installing-opencv-android-in-android-studio-updated-5fe7f3399e1c