# Android 14, SDK 34, Black screen on startup

**URL:** <https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830>\
**Category:** Mobile\
**Tags:** Google-Play, black-screen, Mobile, SDK, unreal-engine, crash, api, question\
**Created:** [February 21, 2024, 2:14pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830 "2024-02-21T14:14:12Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Stupid\_Person\_5878](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stupid_person_5878/32/969868_2.png) [@Stupid\_Person\_5878](https://forums.unrealengine.com/u/Stupid_Person_5878)\
**Post date:** [August 27, 2024, 11:07pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/22 "2024-08-27T23:07:41Z")

</div>

Hey, so It packaged with no errors.  
As shown in your solution, I added the **RECEIVER\_EXPORTED** in the GameActivity.java.template file and added **android.content.Context.RECEIVER\_EXPORTED** in all of the other [NAME]Receiver.java files and the DownloaderService.java file.

Also changed the billing libary version to 7.0.0

Still the same issue. My s23 get’s a black screen, the s8 launches fine.

**Do I have to copy and paste all of the lines you wrote?**

_Because I’m just adding the **RECEIVER\_EXPORTED** flags into the **registerReceiver** functions/commands._

And I also found another forum post on a similar solution.  
Specifically this one where u made the last reply redirecting people to this thread:

> [@API LEVEL 34 java.lang.SecurityException: One of RECEIVER\_EXPORTED or RECEIVER\_NOT\_EXPORTED](https://forums.unrealengine.com/t/api-level-34-java-lang-securityexception-one-of-receiver-exported-or-receiver-not-exported/1889544/2):
>
> I’m currently having the same problem. I am in the middle of testing it, but I believe this will work: In Engine\Build\Android\Java\src\com\epicgames\ue4\GameActivity.java.template (this .template file is used to construct the actual GameActivity.java file that gets packaged) you can see the call to registerReceiver that is causing the problem in onStart() registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION\_RUN)); You’ll also see that it is only added in non-shipping builds …

In the reply marked as the **Solution** , the poster gives point that the registerReceiver get’s executed only in non-shipping builds because of the ! in the the _**if (!BuildConfiguration.equals(“Shipping”))**_ check.

So my assumption is that I have to copy and paste your full solution with the SDK checks instead of the buildConfiguration checks, as they should trigger the registerReceiver thing into the final .APK/.AAB, regardless of the build configuration.  
(I thought the structure of your registerReceiver function was different because you used UE5)

Also I am now using CompileSDK 33, not 34, as 34 gave me errors and 33 still has the RECEIVER\_EXPORTED stuff.

Please correct me if I’m wrong.

---

_[View the full topic](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830)._
