Just in case it’s for someone’s benefit: I had issues with Android apps relying on Google Play Services after updating my XA2 from 3.4 to 4.
I could restore functionality with opengapps using this guide but adapting to Android 9.0 instead of 8.1. My whole story you can find here.
cheers