For me, to fix this problem just make sure upgrade one of dependency to the latest which compatible to AGP 8.x. and sdk 34 for example following this link https://pub.dev/packages/package_info_plus
which the latest sdk is 34.
here is my solution
from device_info_plus: 7.*.*
change to
device_info_plus: ^10.1.2