two methods:
update the project to use AGP 8.4.0 or a later version. ref
downgrade lifecycle_version to 2.7.0