Many sites and applications use outdated measurement libraries to send data to Google Analytics. It is strongly recommended that you upgrade to use a modern measurement library.
What should I use?
Mobile deployments should use the Firebase SDK to send data to Google Analytics. You should consider also using Google Tag Manager for Android or iOS so you can manage your measurement implementation without needing to rebuild and publish an app update.