[英]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.
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.