Because amplify_auth_cognito >=2.4.1 depends on amplify_analytics_pinpoint >=2.4.1 <2.5.0 which depends on device_info_plus ^10.0.1, amplify_auth_cognito >=2.4.1 requires device_info_plus
^10.0.1.
So, because my_app depends on both amplify_auth_cognito ^2.4.1 and device_info_plus ^11.0.0, version solving failed.
Increase
device_info_plus
from^10.0.1
to^11.0.0