Android Gradle 插件(警告)API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourc

编程入门 行业动态 更新时间:2024-10-27 08:37:49
本文介绍了Android Gradle 插件(警告)API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试构建和运行这个存储库 augmented-images我遇到了这个错误.

I am trying to build and run this repository augmented-images and I encounted this error.

由:java.lang.RuntimeException:创建 sfa 时出错.

Caused by: java.lang.RuntimeException: Error creating sfa.

深入到此警告警告!API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()'.

Which drill down to this warning Warning ! API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.

更多来自构建日志分析我看到以下错误错误:无法导入sampledata/airplane/Airplane.obj"

More from the build log analysis I see the following errors ERROR: Failed to import 'sampledata/airplane/Airplane.obj'

我试图找到这个地方

variant.getMergeResources()

被使用,所以我可以替换它但没有运气.

is used so I can replace it but no luck.

请帮忙,也许我需要更新插件.我应该遵循哪些步骤,这就是我怀疑的解决方案.

Please assist maybe I need to update the plugin. Which steps should I follow that is what I suspect will be the solution.

推荐答案

将 classpath 'com.google.gms:google-services:4.3.0' 更改为 classpath 'com.google.gms:google-services:4.2.0' 目前有效..

Changing classpath 'com.google.gms:google-services:4.3.0' to classpath 'com.google.gms:google-services:4.2.0' works for now..

更多推荐

Android Gradle 插件(警告)API 'variant.getMergeResources()' 已过时并已替换为 'var

本文发布于:2023-09-18 14:10:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466875.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:并已   插件   API   Android   Gradle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!