# The Mobile Location Services - Android Implementation plugin causes Packaging error. Help!!

**URL:** <https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 28, 2024, 10:56am UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050 "2024-11-28T10:56:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arts.x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arts.x](https://forums.unrealengine.com/u/arts.x)\
**Post date:** [November 28, 2024, 10:56am UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050/1 "2024-11-28T10:56:42Z")

</div>

The “Mobile Location Services - Android Implementation” plugin causes the packaging to fail with the error code:

`LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:731: error: cannot find symbol`

The solution is to disable the plugin but the problem is that my project needs the plugin.

If the plugin is disabled and the packaging was a sucess when starting the game on a phone and giving acess to the game to get my location data, it always fails at the “Start Location Services” node.

Is there a way to do it without the plugin or is there a fix for the plugin? Please Help!

 ![Screenshot 2024-11-28 115255](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/8/418a97283da6b411cdabdb54d0edf45203722e9e.png)

---

<div class="post-metadata">

**Author:** ![arts.x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arts.x](https://forums.unrealengine.com/u/arts.x)\
**Post date:** [November 30, 2024, 3:01pm UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050/2 "2024-11-30T15:01:10Z")

</div>

Someone please

---

<div class="post-metadata">

**Author:** ![tootzoe1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tootzoe1](https://forums.unrealengine.com/u/tootzoe1)\
**Post date:** [November 30, 2024, 3:13pm UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050/3 "2024-11-30T15:13:12Z")

</div>

You should present more details if you really want someone to help you…  
which UE version , android sdk version you are packing…

---

<div class="post-metadata">

**Author:** ![arts.x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arts.x](https://forums.unrealengine.com/u/arts.x)\
**Post date:** [November 30, 2024, 6:50pm UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050/4 "2024-11-30T18:50:05Z")

</div>

Okay!

I’m using the **25.1.8937393** NDK and the **17th** JDK.

 ![dsa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/4/b847df75edc331ec39b013ecda3207b1715a9ddf.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/8/14896a464ca8c24602cdb9b2889b5b23214f5571.png)  
and the **2024.2.1** version of Android Studio

---

<div class="post-metadata">

**Author:** ![arts.x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arts.x](https://forums.unrealengine.com/u/arts.x)\
**Post date:** [December 1, 2024, 3:18pm UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050/5 "2024-12-01T15:18:25Z")

</div>

Okay, I managed to fix the error!🥳

The error was caused by the 731st line in the GameActivity.java: “`activityContext.runOnUiThread(new Runnable()`”

**Problem:**  
The problem was that activitycontext dosen’t have the runOnUiThread event the \_activity has that event which I found out by going to `D:\UE5ProjectsOnD\AndroidRenderText 5.5\Intermediate\Android\arm64\src\com\epicgames\unreal` and at the 3830th line it says `_activity.runOnUiThread(new Runnable()` which you can fix easly by changing the `activityContext` to `_activity` in the GameActivity.java, butttt… Unreal every time regenerates the GameActivity.java so we need to change the plugin to put \_activity instead of activityContext.

**Solution:**  
Go to UE\_5.5\Engine\Plugins\Runtime\LocationServicesAndroidImpl\Source\LocationServicesAndroidImpl and open the LocationServicesAndroidImpl\_UPL.XML file and search for `activityContext.runOnUiThread` and simply just change the activityContext to \_activity.

I hope I helpled you 😃  
Epic, please fix this error because for a beginner it’s very hard to fix this error then you just rewriting a word.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 31, 2024, 3:18pm UTC](https://forums.unrealengine.com/t/the-mobile-location-services-android-implementation-plugin-causes-packaging-error-help/2156050/6 "2024-12-31T15:18:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
