app installation error

let me ask when I wrote the app and exported it to install on the phone, when the installation is completed and I get an error: "The app was made for an older Android version and may not work properly. for updates or contact developer ".
And when simulating on a laptop, the message looks like this:

This happens when the app has firebase, without firebase, the app works normally
let me ask what's wrong, thanks.

Use a newer emulator: