# Update Google SDKs

**URL:** <https://forums.unrealengine.com/t/update-google-sdks/1331547>\
**Category:** Blueprint\
**Tags:** unreal-engine, Android\
**Created:** [October 13, 2023, 4:56pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547 "2023-10-13T16:56:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![WisoldGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wisoldgames/32/1077219_2.png) [@WisoldGames](https://forums.unrealengine.com/u/WisoldGames)\
**Post date:** [October 13, 2023, 4:56pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/1 "2023-10-13T16:56:37Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/9/989e51638b15df7be545410ae130197a7db9dcc2.png)

I packaged my Android game, uploaded it to Play Console and enabled admob. But it informed me that the SDK is out of date. I’ve been looking for a solution to this problem for days. Normally, version 18.1.0 came by default and I was able to upgrade it to 19.8.0 at most. But I need to upgrade to 20.x.x-22.x.x. In aar-imports.txt, if I choose high version numbers, I get errors during packaging. The reason for the errors is that new GMA SDKs come with some code changes. Please help me.

Sorry for using translation.

> _The Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads-lite) developer added the following note to the 19.8.0 SDK version:_  
> _This version is scheduled to be retired on June 30, 2023. See [रुकना और सूर्यास्त &nbsp;|&nbsp; Android &nbsp;|&nbsp; Google for Developers](https://developers.google.com/admob/android/deprecation) for more information._

**Adding 1:**

> _The developer of the androidx.fragment:fragment (androidx.fragment:fragment) SDK reported that version 1.0.0 is outdated. We recommend upgrading to one of the following SDK versions before releasing a new version: 1.1.0+._

**Adding 2:**  
Also add com.google.android.gms.permission.AD\_ID to the Extra Tags for node section. If I add it the packaging fails.

> _Your advertising ID declaration in Play Console states that your app uses advertising ID. The manifest file in one of your active builds does not contain the com.google.android.gms.permission.AD\_ID permission._

---

<div class="post-metadata">

**Author:** ![I.PUBG.I](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I.PUBG.I](https://forums.unrealengine.com/u/I.PUBG.I)\
**Post date:** [October 14, 2023, 5:22pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/2 "2023-10-14T17:22:49Z")

</div>

really not clear. and there are non english text there and vague explaining.

---

<div class="post-metadata">

**Author:** ![WisoldGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wisoldgames/32/1077219_2.png) [@WisoldGames](https://forums.unrealengine.com/u/WisoldGames)\
**Post date:** [October 14, 2023, 5:25pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/3 "2023-10-14T17:25:06Z")

</div>

> [@I.PUBG.I](#):
>
> really not clear. and there are non english text there and vague explaining

In my article, I translated a part into English, “Quoted part”. In Google Play, I get a warning that the Google Mobile Ads (GMS) SDK is outdated.

---

<div class="post-metadata">

**Author:** ![gjverhoeff2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gjverhoeff2/32/764460_2.png) [@gjverhoeff2](https://forums.unrealengine.com/u/gjverhoeff2)\
**Post date:** [October 18, 2023, 6:53pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/4 "2023-10-18T18:53:13Z")

</div>

Same issue here with submitting an app to Google Play Store with Google AdMob. Bookmarking this post and hopefully they push an update for it.

---

<div class="post-metadata">

**Author:** ![marekpawlowski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marekpawlowski](https://forums.unrealengine.com/u/marekpawlowski)\
**Post date:** [October 20, 2023, 7:25pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/5 "2023-10-20T19:25:04Z")

</div>

Hi,  
What is your UE version?

I’ve found simple workaround for androidx.fragment:fragment:1.0.0.

1. Set up project in Android Studio in the location ‘yourproject’\Intermediate\Android\gradle
2. Open File-\>Project Structure…
3. Select Dependencies-\>AllModuls-\>androidx.fragment:fragment:1.0.0
4. Check dependencies in TargetModules/Artifacts
5. Find all places where libraries, which contains androidx.fragment:fragment:1.0.0, are implemented. (In my project these are two files: gradle\app\arr-imports.gradle and gradle\permission\_library\build.gradle
6. Find where these libraries are implemented and at the end put:  
constraints.implementation ‘androidx.fragment:fragment:1.3.6’  
in the dependency{}
7. Sync build
8. Check external Libraries in the project section
9. If there are two versions of androidx.fragment:fragment (1.0.0 and 1.3.6), go back to 2. and check which library contains version 1.0.0
10. Build AAB using Android Studio. (by default only release version contains Key Store)

It’s not the best solution, because you have to edit files for every build once again. I’ve tried to implement solution using UPL, but I failed.

My file: gradle\app\arr-imports.gradle with implemented my solution:

```auto
repositories {
	maven { url uri('D:/UnrealEngine/UE_5.3/Engine/Source/ThirdParty/Android/extras/google/m2repository') }
	maven { url uri('D:/UnrealEngine/UE_5.3/Engine/Source/ThirdParty/Android/extras/android/m2repository') }
}
dependencies {
	implementation 'com.google.android.gms:play-services-auth:18.1.0'
	implementation 'com.google.android.gms:play-services-nearby:18.1.0'
	implementation 'com.google.android.gms:play-services-games:18.0.1'
	implementation 'com.google.android.gms:play-services-plus:17.0.0'
	constraints.implementation 'androidx.fragment:fragment:1.3.6'
}

```

---

<div class="post-metadata">

**Author:** ![D\_Deng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d_deng/32/758117_2.png) [@D\_Deng](https://forums.unrealengine.com/u/D_Deng)\
**Post date:** [January 26, 2024, 5:46am UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/6 "2024-01-26T05:46:41Z")

</div>

Hi, I’ve managed to resolve the issues in 5.3 but it does require editing unreal’s source code so please beware. BACK UP before attempting this. This solution also works for those who use banner ads. Additional steps are required for those who use interstitial or other types of ads.

For the (androidx.fragment:fragment) error, answer is provided in this post: [Google console telling me androidx.fragment:fragment:1.0.0 is outdated](https://forums.unrealengine.com/t/google-console-telling-me-androidx-fragment1-0-0-is-outdated/1390776)

For the (com.google.android.gms:play-services-ads-lite) and (com.google.android.gms:play-services-ads) issues do the following:

1. Go to C:\Program Files\Epic Games\UE\_5.3\Engine\Source\Runtime\Advertising\Android\AndroidAdvertising

2. Right click ‘AndroidAdvertising\_APL’ file, select ‘properties’ and untick ‘read-only’

3. Open ‘AndroidAdvertising\_APL’ file using notepad and edit the following:

- Change dependencies to the following:  
implementation(‘com.google.android.gms:play-services-ads:22.6.0’)  
implementation(‘com.google.android.gms:play-services-ads-lite:22.6.0’)

- Remove ALL instances/mentions of interstitial ads. Alternatively, you can update them. I haven’t tried updating since my project doesn’t use them.

- Remove ALL ‘@override’

1. Save and build

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Lowenmensch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lowenmensch/32/892317_2.png) [@Lowenmensch](https://forums.unrealengine.com/u/Lowenmensch)\
**Post date:** [February 1, 2024, 3:50pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/7 "2024-02-01T15:50:44Z")

</div>

Thank you for sharing this information. It solved some of my issues or warning in the play console.

---

<div class="post-metadata">

**Author:** ![CapitanMaxwell](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/capitanmaxwell/32/995473_2.png) [@CapitanMaxwell](https://forums.unrealengine.com/u/CapitanMaxwell)\
**Post date:** [March 27, 2024, 11:48pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/9 "2024-03-27T23:48:36Z")

</div>

Who search realy good solution go to the next post:

> [@Upgrade to Google Play Services Ads v22.6.0 for Android Builds](https://forums.unrealengine.com/t/upgrade-to-google-play-services-ads-v22-6-0-for-android-builds/1769977):
>
> You might have noticed below warning in Google Play… com.google.android.gms:play-services-ads-lite has reported play-services-ads-lite:18.1.0 as outdated. You may not be able to release future versions of your app with this SDK version to production or open testing. I’m on UE 5.3.2, the default available play-services-ads version is 18.1.0. With above mentioned warning from Google Play, there’s a need to upgrade to one of recent versions like v22.6.0 I’m sharing the details of modification…

---

<div class="post-metadata">

**Author:** ![SNIkerGam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SNIkerGam](https://forums.unrealengine.com/u/SNIkerGam)\
**Post date:** [June 6, 2024, 2:10pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/10 "2024-06-06T14:10:10Z")

</div>

Hi! i did the same thing as you but then the project wouldn’t package, i tried to restore what i changed by using the stuff from ue5.4 (the project is on 5.3) but still can’t export the game

---

<div class="post-metadata">

**Author:** ![D\_Deng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d_deng/32/758117_2.png) [@D\_Deng](https://forums.unrealengine.com/u/D_Deng)\
**Post date:** [June 10, 2024, 6:22am UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/11 "2024-06-10T06:22:17Z")

</div>

I would check what errors popped up in the Output log. There should be a warning/s which will help you identify the issue

---

<div class="post-metadata">

**Author:** ![D\_Deng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d_deng/32/758117_2.png) [@D\_Deng](https://forums.unrealengine.com/u/D_Deng)\
**Post date:** [June 10, 2024, 6:25am UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/12 "2024-06-10T06:25:56Z")

</div>

Another thing to note, if you need to revert/undo any changes to Unreals base code files, simply click on the drop down arrow linked and hit ‘Verify’. This will undo all the changes you made IF your engine is loaded from the epic launcher.

Hope this helps.  
 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/8/4884b33c140818ae187d1563ae1eb7f36a13ec67.png)

---

<div class="post-metadata">

**Author:** ![Lowenmensch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lowenmensch/32/892317_2.png) [@Lowenmensch](https://forums.unrealengine.com/u/Lowenmensch)\
**Post date:** [June 13, 2024, 1:44am UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/13 "2024-06-13T01:44:07Z")

</div>

based on my experience admob doesn’t work properly in UE5.4. If you are packaging it to “shipping” you need to fill out the “Signing for Distribution” in the Android Platform and make sure that the check box “For Distribution” is enabled in Project Packaging

---

<div class="post-metadata">

**Author:** ![Readhunterbd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Readhunterbd1](https://forums.unrealengine.com/u/Readhunterbd1)\
**Post date:** [June 16, 2024, 6:08am UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/14 "2024-06-16T06:08:39Z")

</div>

when i try to include android advertising then packageing will always failed in C++,if i try to include admob support in only blueprint then then it always give me error UE5.4/5.3 same

UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:867: error: cannot find symbol  
UATHelper: Packaging (Android (ASTC)): activityContext.runOnUiThread(new Runnable()  
UATHelper: Packaging (Android (ASTC)): ^  
UATHelper: Packaging (Android (ASTC)): symbol: method runOnUiThread()  
UATHelper: Packaging (Android (ASTC)): location: variable activityContext of type ContextWrapper  
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:892: error: cannot find symbol  
UATHelper: Packaging (Android (ASTC)): activityContext.runOnUiThread(new Runnable()  
UATHelper: Packaging (Android (ASTC)): ^  
UATHelper: Packaging (Android (ASTC)): symbol: method runOnUiThread()  
UATHelper: Packaging (Android (ASTC)): location: variable activityContext of type ContextWrapper  
PackagingResults: Error: cannot find symbol  
PackagingResults: Error: cannot find symbol  
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:958: error: cannot find symbol  
UATHelper: Packaging (Android (ASTC)): activityContext.runOnUiThread(new Runnable()  
UATHelper: Packaging (Android (ASTC)): ^  
UATHelper: Packaging (Android (ASTC)): symbol: method runOnUiThread()  
UATHelper: Packaging (Android (ASTC)): location: variable activityContext of type ContextWrapper  
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:979: error: cannot find symbol

---

<div class="post-metadata">

**Author:** ![Lowenmensch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lowenmensch/32/892317_2.png) [@Lowenmensch](https://forums.unrealengine.com/u/Lowenmensch)\
**Post date:** [June 25, 2024, 1:48am UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/15 "2024-06-25T01:48:34Z")

</div>

Try this code for the `AndroidAdvertising_APL.xml`. It worked for me on version 5.4.2, with both banner and interstitial ads functioning correctly

[AndroidAdvertising\_APL.xml](https://forums.unrealengine.com/uploads/short-url/xIJbuJvvorst6kRJbM67YknbbUo.xml) (13.8 KB)

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [March 11, 2025, 1:48pm UTC](https://forums.unrealengine.com/t/update-google-sdks/1331547/16 "2025-03-11T13:48:09Z")

</div>

Hey, Do you happen to have any more information on this. Claude is telling me that the interstitial ads that unreal is trying to get are old.

In my UPL and the APL Ive specified 22.6.0 but Im still yet to get anywhere with admob.
