When building gradle I\'m getting this message:
API \'BaseVariant.getApplicationIdTextResource\' is obsolete and has been replaced with \'VariantPr
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.