# Update Android Play Billing 5.0

**URL:** <https://forums.unrealengine.com/t/update-android-play-billing-5-0/1257109>\
**Category:** Programming & Scripting\
**Tags:** Mobile, unreal-engine, Blueprint, question\
**Created:** [August 10, 2023, 8:10pm UTC](https://forums.unrealengine.com/t/update-android-play-billing-5-0/1257109 "2023-08-10T20:10:01Z")\
**Posts on this page:** 1\
**Showing post:** 57

<div class="post-metadata">

**Author:** ![BP\_SpawnGato](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bp_spawngato/32/977690_2.png) [@BP\_SpawnGato](https://forums.unrealengine.com/u/BP_SpawnGato)\
**Post date:** [September 16, 2024, 1:04pm UTC](https://forums.unrealengine.com/t/update-android-play-billing-5-0/1257109/57 "2024-09-16T13:04:02Z")

</div>

> [@Herlehos](#):
>
> PrivateDependencyModuleNames.Add(“AndroidAdvertising”);

Hey, thank you again! I have all of that added all that and still got the build error for android ads lite. For anyone else struggling just to get a build on the settings mentioned in this thread, i saw this post:

[android - AAPT: error: unexpected element found in - Stack Overflow](https://stackoverflow.com/questions/77463656/aapt-error-unexpected-element-property-found-in-manifestapplication)

Looks like they are discussing unity in the post, but the guy was right. In my case ads 22.6 was causing the build error. i changed it to 22.1.

Also i had to upgrade my gradle version. i used the description of how to get there in the engine files using this thread:

> [@How to change Gradle version for project?](https://forums.unrealengine.com/t/how-to-change-gradle-version-for-project/468030/6):
>
> I’ve had this issue for quite some time and i found the answer. (at least for me) I was trying to package my game from Unreal 4.23 into Android. And i got the same error as you. The reason being is that Gradle for some reason deprecated the older version that comes along with this Unreal Engine. And the solution is that you need to go and change the build.grade file. I am assuming that the file itself is not created by default, but only when you start to package a project (but i could be wron…

I went to _C:\Program Files\Epic Games\UE\_engine version_\Engine\Build\Android\Java\gradle\* and changed my gradle version to 3.5.3. I’m not willing to try a higher version, because this one worked for me.

the i went to: C:\ProgramFiles\EpicGames\UE\_engineversion\*\Engine\Build\Android\Java\gradle\gradle\wrapper and opened  
“gradle-wrrapper.properties”

I changed the version number at the end of dist URL to 6.7.1

This allowed me to build with the updated .APL file and the added text to .build and .target

@Herlehos many thanks to you. I’m looking at my first banner test ad on a packaged build. I almost gave up… haha

---

_[View the full topic](https://forums.unrealengine.com/t/update-android-play-billing-5-0/1257109)._
