本文介绍了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"已过时,并已替换为"VariantPro
发布评论