Update Google SDKs

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

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.

2 Likes