Android Gradle 插件(警告)API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()' [英] Android Gradle Plugin (Warning) API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'

查看:44
本文介绍了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()' 已过时并已替换为 'variant.getMergeResourcesProvider()'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆