API"BaseVariant.getApplicationIdTextResource"已过时,并已替换为"VariantProperties.applicationId" [英] API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'

查看:1503
本文介绍了API"BaseVariant.getApplicationIdTextResource"已过时,并已替换为"VariantProperties.applicationId"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建gradle时,我收到此消息:

When building gradle I'm getting this message:

API'BaseVariant.getApplicationIdTextResource'已过时,并已替换为'VariantProperties.applicationId'

我正在使用 Android Studio 4.1 Canary 10 gradle:4.1.0-alpha10

推荐答案

似乎是 Navigation Safe Args插件使用 getApplicationIdTextResource(),因此错误消息很可能是由您对该插件的使用引起的.

It seems like the Navigation Safe Args plugin uses getApplicationIdTextResource(), so it is most likely that the error message is caused by your usage of that plugin.

您想为存在的问题加注星标,以要求Safe Args插件使用新的替换API.

You'd want to star the existing issue to ask the Safe Args plugin to use the new replacement API.

这篇关于API"BaseVariant.getApplicationIdTextResource"已过时,并已替换为"VariantProperties.applicationId"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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