UE5.2 Show External Login UI Crashes on Android

Hello, i am having this issue for quite a while and can’t figure it out. I checked every topic and everything i could find online, tried a lot of solutions but couldn’t figure this out. Basically when i call Show External Login UI on android, it starts lagging the device, keeps trying and eventually crashes in around 5 seconds.

I have Google Play Support enabled in the project settings, i have proper setup with IDs and everything. I have added my games id to GooglePlayAppID.xml, no luck.

Does anyone know how to fix this?

EDIT:

By investigating more, i could find these two lines in the logcat after i call Show External Login UI;

LogOnline: OSS: StartShowLoginUITask PlayerId: 0
LogOnline: OSS: StartShowLoginUITask Game Services was null

For some reason, it says Game Services is null. This goes for both interal test and launch directly to device.

Have you had any luck? I’m having the same issue

Found the solution to the issue in another thread so posting here
Set the following values in Engine\Build\Android\Java\aar-imports.txt
com.google.android.gms,play-services-auth,18.1.0
com.google.android.gms,play-services-nearby,18.1.0
com.google.android.gms,play-services-games,18.0.1
com.google.android.gms,play-services-plus,17.0.0
If you have an ads plugin, change the ‘_UPL.xml’ file in the plugin directory to the same values. I’ve found I only needed to change it in the plugin file, but if it doesn’t work, try both

1 Like