# Google Play Services causes Android application to crash on load

**URL:** <https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959>\
**Category:** Mobile\
**Tags:** Google-Play, Android-Packaging, Mobile, google-play-service, unreal-engine, Android, Packaging, Blueprint, question\
**Created:** [April 17, 2023, 10:16am UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959 "2023-04-17T10:16:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lou781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lou781](https://forums.unrealengine.com/u/Lou781)\
**Post date:** [April 17, 2023, 10:16am UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/1 "2023-04-17T10:16:55Z")

</div>

When creating my application, I have been attempting to implement Google Play Services into my game so that I can get a working leaderboard system, along with Admob Ads.

I have followed all the UE4/5 documentation regarding this setup, and have set up the following in the project settings

**Extra Permissions:**

- android.permission.INTERNET
- com.android.vending.BILLING

**Google Play Services:**

- Enable Google Play Support
- Games App ID
- Google Play Licence Key
- Leaderboard Map

For Admob Ads, I am using a plugin that is separate from the default Google Play Services so that I can also integrate iOS into the equation.

As for the leaderboard system, I have already got this working successfully on iOS and will bring up the Game Centre Leaderboards without issue. Android, however, will crash on load after toggling "Enable Google Play Support.

This also appears to be occurring with the Plugin I’m using for Admob Ads as it requires Google Play Services.

**Java Gradle:**

- D:\Unreal Engine\UE\_5.1\Engine\Build\Android\Java\arr-imports.txt
- com.google.android.gms,play-services-auth,11.8.0
- com.google.android.gms,play-services-games,23.0.0
- com.google.android.gms,play-services-nearby,11.8.0
- com.google.android.gms,play-services-plus,11.8.0

Gradle files appear to be out of date but no idea on how to update these if they are the cause

Any help at all would be appreciated as I am completely stumped on why this isn’t working for me.

---

<div class="post-metadata">

**Author:** ![Asem709](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Asem709](https://forums.unrealengine.com/u/Asem709)\
**Post date:** [April 26, 2023, 12:09am UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/2 "2023-04-26T00:09:43Z")

</div>

Do you find a solution?

---

<div class="post-metadata">

**Author:** ![Mesya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mesya/32/630405_2.png) [@Mesya](https://forums.unrealengine.com/u/Mesya)\
**Post date:** [June 14, 2023, 3:23pm UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/3 "2023-06-14T15:23:02Z")

</div>

Same here. UE5.1. I spent a week looking for a solution. Nothing yet.

---

<div class="post-metadata">

**Author:** ![TR\_Shieldowskyy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TR\_Shieldowskyy](https://forums.unrealengine.com/u/TR_Shieldowskyy)\
**Post date:** [June 29, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/4 "2023-06-29T16:05:57Z")

</div>

Do you have any plugins from the marketplace in the project? If so, can you provide their names? I myself had a similar problem through a plugin for ads called “AdsPro”.

---

<div class="post-metadata">

**Author:** ![Lou781](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lou781](https://forums.unrealengine.com/u/Lou781)\
**Post date:** [July 4, 2023, 1:13pm UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/5 "2023-07-04T13:13:58Z")

</div>

I do use an Ads Plugin I think I might use the same one you do so if you have any idea on how to get it to work I’d love to know. I only have working ads on iOS

---

<div class="post-metadata">

**Author:** ![Meatrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Meatrey](https://forums.unrealengine.com/u/Meatrey)\
**Post date:** [August 28, 2023, 2:56am UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/6 "2023-08-28T02:56:40Z")

</div>

Hey you can try to set 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`  
And also, if you have an ads plugin, please check in plugin directory the ‘\_UPL.xml’ file for the same dependencies.

---

<div class="post-metadata">

**Author:** ![Awesumson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Awesumson](https://forums.unrealengine.com/u/Awesumson)\
**Post date:** [November 3, 2023, 9:01pm UTC](https://forums.unrealengine.com/t/google-play-services-causes-android-application-to-crash-on-load/1083959/7 "2023-11-03T21:01:45Z")

</div>

I’ve found you only need to change it on the Ads UPL file. Just tested with Easy Ads and had a crash before but not after only changing the easy ads \_UPL.xml file
