简体   繁体   English

失败:构建失败,出现异常。 * 出了什么问题:任务 ':app:processDebugManifest' 执行失败。 > 找不到方法 getMetad

[英]FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugManifest'. > Could not find method getMetad

FAILURE: Build failed with an exception.
  • What went wrong: Execution failed for task ':app:processDebugManifest'.出了什么问题:任务 ':app:processDebugManifest' 执行失败。

Could not find method getMetadataByConfig() for arguments [] on task ':app:processDebugManifest' of type com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest.无法在类型为 com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest 的任务“:app:processDebugManifest”上找到 arguments [] 的方法 getMetadataByConfig()。

If you are using Gradle's Configuration Cache and Huawei's AgConnect plugin at the same time, then the problem might be due to this plugin.如果你同时使用了Gradle的Configuration Cache和华为的AgConnect插件,那么问题可能出在这个插件上。 See: https://forums.developer.huawei.com/forumPortal/en/topic/0202743615441540593详见: https://forums.developer.huawei.com/forumPortal/zh/topic/0202743615441540593

As a solution, consider disabling Gradle's Configuration Cache or applying AgConnect plugin conditionally (for example don't apply it during development and only apply it while releasing).作为解决方案,请考虑禁用 Gradle 的配置缓存或有条件地应用 AgConnect 插件(例如,不要在开发期间应用它,只在发布时应用它)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 FAILURE:构建失败并出现异常。 任务“:app:mergeDebugResources”执行失败 - FAILURE: Build failed with an exception. Execution failed for task ':app:mergeDebugResources' * 出了什么问题:无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖项。 > 未能找到 Build Tools 修订版 29.0.2 - * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Failed to find Build Tools revision 29.0.2 任务':app:processDebugManifest的执行失败 - Execution failed for task ':app:processDebugManifest 任务':app:processDebugManifest'的执行失败 - Execution failed for task':app:processDebugManifest' 出了什么问题:任务':app:transformClassesWithJarMergingForDebug'的执行失败 - What went wrong: Execution failed for task ':app:transformClassesWithJarMergingForDebug' 出了什么问题:任务 ':app:mergeDebugResources' 执行失败 - What went wrong: Execution failed for task ':app:mergeDebugResources' 离子3-任务':app:processDebugManifest'的执行失败 - Ionic 3 - Execution failed for task ':app:processDebugManifest' 任务执行失败':app:processDebugManifest' - React Native - Execution failed for task ':app:processDebugManifest' - React Native Gradle 中的任务“:app:processDebugManifest”执行失败 - Execution failed for task ':app:processDebugManifest' in Gradle 如何解决任务执行失败':app:processDebugManifest' - How to solve Execution failed for task ':app:processDebugManifest'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM