java - 警告 : API 'variant.getMergeResources()' is obsolete and has been replaced with

标签 java android

<分区>

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

最佳答案

正如 Saran 在评论中指出的那样,目前还没有永久的解决方案。这是一个警告,您现在应该可以安全地忽略它。

你可以试试,

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

关于java - 警告 : API 'variant.getMergeResources()' is obsolete and has been replaced with,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57140791/

相关文章:

java - fatal error : jni. h:安装 jPype 时没有此类文件或目录

android - flutter - 如何延迟到ListView,所以项目一个一个显示

java - webView帮助-错误页面INTERNET WebView

java - 根据历史记录 sqlite 中存储的数据在每个 chrome 选项卡/网站上花费的时间

java - 如何使用 setOnClickListener 将 ListView 数据从一个 Activity 获取到另一个 Activity

java - 处理无法向用户发送私有(private)消息的最佳方法是什么?

android - 是什么让 singleTask Activity 有 2 个实例?

android - 如何避免android xml中的代码重复

java - 谷歌眼镜菜单

java - 编译警告 "static method declared final"是什么原因?