# UNREAL 5.0.3 RECEIVER\_EXPORTED error in gameactivity.java.template for 34+ api

**URL:** <https://forums.unrealengine.com/t/unreal-5-0-3-receiver-exported-error-in-gameactivity-java-template-for-34-api/1954214>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [July 29, 2024, 11:00am UTC](https://forums.unrealengine.com/t/unreal-5-0-3-receiver-exported-error-in-gameactivity-java-template-for-34-api/1954214 "2024-07-29T11:00:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [July 29, 2024, 11:00am UTC](https://forums.unrealengine.com/t/unreal-5-0-3-receiver-exported-error-in-gameactivity-java-template-for-34-api/1954214/1 "2024-07-29T11:00:49Z")

</div>

hi, im facing a simple issue, where the build seems to fail upon not recognizing the “symbol” for RECEIVER\_EXPORTED, i thought id ask if someone has expereinced the same and knew the issue:

\GameActivity.java:768: error: cannot find symbol  
registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION\_RUN), RECEIVER\_EXPORTED);

this is the error, cannot find symbol, and it occurs when i change the  
//registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION\_RUN));  
to  
registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION\_RUN), RECEIVER\_EXPORTED);  
in the gameactivity.java.template in UE\_5.0\Engine\Build\Android\Java\src\com\epicgames\unreal

which is needed to build for android sdk 34+ and above, the issue seems to be the unreal engine 5.0.3 doesnt recognize the symbol, i dont have enough experience to pinpoint the exact issue, but i heard it could be occur from many places.

however this works for later engine versions, just for 5.0.3 it throws a little erroar.

---

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [July 29, 2024, 9:11pm UTC](https://forums.unrealengine.com/t/unreal-5-0-3-receiver-exported-error-in-gameactivity-java-template-for-34-api/1954214/2 "2024-07-29T21:11:06Z")

</div>

after trying many methods including:

public static final int RECEIVER\_EXPORTED = 0;

IntentFilter filter = new IntentFilter(Intent.ACTION\_RUN);  
registerReceiver(consoleCmdReceiver, filter, RECEIVER\_EXPORTED);

i seemed to still get crash regardless of build success, it seems the issue might be in the ndk for this one. need to do more tests to see.

---

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [August 1, 2024, 12:32am UTC](https://forums.unrealengine.com/t/unreal-5-0-3-receiver-exported-error-in-gameactivity-java-template-for-34-api/1954214/3 "2024-08-01T00:32:42Z")

</div>

great news, fixed it, just comment out the segment in GameActivity.java.tempalte in the engine folder:

folder: UE\_5.0\Engine\Build\Android\Java\src\com\epicgames\unreal

/\*  
@Override  
public void onStart()  
{  
super.onStart();

```
	if (!BuildConfiguration.equals("Shipping"))
	{
		// Create console command broadcast listener
		Log.debug( "Creating console command broadcast listener");
		consoleCmdReceiver = new ConsoleCmdReceiver(this);
		//registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION_RUN));
		registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION_RUN), RECEIVER_EXPORTED);
	}

```

//$${gameActivityOnStartAdditions}$$  
Log.debug(“==================================\> Inside onStart function in GameActivity”);  
}  
\*/

your done. running 19 sdk to 35 in unreal 5.0.3, im so glad the fix was so simple, thankfully i really didnt wanna update who engine

---

<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:** [August 31, 2024, 12:33am UTC](https://forums.unrealengine.com/t/unreal-5-0-3-receiver-exported-error-in-gameactivity-java-template-for-34-api/1954214/4 "2024-08-31T00:33:35Z")

</div>

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