When I put the game on play console, this error appears: com.google.android.gms:play-services-measurement-impl com.google.android.gms:play-services-measurement-impl: Consider upgrading to a policy- compliant version of the SDK if available from your SDK provider, or remove the SDK.
Goole Play Services are not part of Unity. Your project must contain some plugin that is adding the services to your Android build (maybe the official Google Play Games plugin for Unity).
You’ll need to upgrade the plugin to a version that is supported by Google or remove it. Maybe newer versions of the plugin don’t support your version of Unity, in which case you’ll have to upgrade your project to a version of Unity supported by the plugin first.