API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'

后端 未结 6 1763
时光说笑
时光说笑 2021-02-03 17:36

When building gradle I\'m getting this message:

API \'BaseVariant.getApplicationIdTextResource\' is obsolete and has been replaced with \'VariantPr

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 18:17

    As @ianhanniballake has pointed out, it seems likely that it's caused by the Navigation Safe Args plugin, see the existing issue, also referenced from his answer. The issue was marked as fixed on 9 November.

    In terms of fixing the build error, upgrading Android Studio from 4.1.0 to 4.1.1 fixed it for me.

提交回复
热议问题