警告:API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()' [英] WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'

查看:33
本文介绍了警告:API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次构建应用程序时都会收到此警告.我想我已经更新了所有库,有人可以告诉我问题出在哪里吗?显然,我认为这可能来自 Google Play 服务,但我拥有我正在使用的所有库的最新版本.

I've been getting this warning every time I build my app. I think that I have all the libraries updates, someone can tell me where is the problem? Apparently, I think that could be from Google Play services, but I have the last version of all the libraries that I'm using.

我找不到任何可以解决问题的方法

I can't find anything that can fix the problem

警告:API 'variant.getMergeResources()' 已过时并已替换为'variant.getMergeResourcesProvider()'.它将在 2019 年底被删除.有关详细信息,请参阅 https://d.android.com/r/tools/任务配置避免.要确定是什么调用了 variant.getMergeResources(),请在命令行上使用 -Pandroid.debug.obsoleteApi=true 以显示更多信息.受影响的模块:app

WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. Affected Modules: app

推荐答案

貌似是gms services 4.3.0引起的.这似乎只是一个警告,并没有造成任何问题.但是,如果您愿意,可以在项目级 gradle 文件中使用较早版本的 gms 服务来摆脱它:

Looks like it is caused by gms services 4.3.0. This seems to be just a warning and not causing any problems. However, if you want you can use an earlier version of gms services in your project level gradle file to get rid of it:

com.google.gms:google-services:4.2.0

这篇关于警告:API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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