# 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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![KowiyGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KowiyGames](https://forums.unrealengine.com/u/KowiyGames)\
**Post date:** [February 21, 2024, 2:14pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/1 "2024-02-21T14:14:12Z")

</div>

Hello everyone!

I want to do a closed test of my mobile game on Google Play. I use:  
Source Unreal Engine 5.3.2  
Android SDK 34  
Samsung A54 with Android 14

After showing the start screen the game just shows a BLACK screen on this phone (NOT crashing). It’s important to clarify! The game WORKS completely with the same configuration if the game is NOT launched from Google Play. That is, if you run the Shipping build on the same phone on Android 14 directly from the engine, then everything works fine!

On SDK 33 everything works on the same phone in Google Play. On the same phone, everything worked with SDK 34 when Android 13 was installed on it. This error only occurs on Android 14! I cannot provide logs from the device, since Google Play publishes a Shipping assembly in which the logs cannot be found. I cannot rollback to SDK 33, because I previously published a build with SDK 34. Google prohibits rolling back.

There is a suspicion that this is due to the Google PAD plugin, which does not work correctly with SDK 34 if you download the game from Google Play (for my opinion). Are there any options to solve this problem?

I would be very grateful if you could help me fix this problem.

---

<div class="post-metadata">

**Author:** ![ourcreed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ourcreed](https://forums.unrealengine.com/u/ourcreed)\
**Post date:** [July 7, 2024, 10:44pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/2 "2024-07-07T22:44:57Z")

</div>

Hi there! Did you ever find a solution to this? Google has now made it mandatory to update target sdk to 34 and I’m having the exact same issue right now

---

<div class="post-metadata">

**Author:** ![ourcreed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ourcreed](https://forums.unrealengine.com/u/ourcreed)\
**Post date:** [July 8, 2024, 9:38pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/3 "2024-07-08T21:38:29Z")

</div>

For anyone else having this problem, just go over to your plugins and disable google PAD. It has some downsides, but it’s still better than being entirely broken and having a black screen 😉

---

<div class="post-metadata">

**Author:** ![LuizGaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luizgaming/32/755162_2.png) [@LuizGaming](https://forums.unrealengine.com/u/LuizGaming)\
**Post date:** [July 22, 2024, 11:55pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/4 "2024-07-22T23:55:20Z")

</div>

I have same issue (shipping / development). I see black screen and after 1-2s my game is crashing. On SDK 33 all working fine, but I need upgrade project to 34  
I turned off Google PAD and switched to Development Build, remove Intermediate, Saved, BInaries Build folders… Same problem.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/6/1063b7b8d0d08363f25402924ec913ccef4f82da.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/b/8db481fbaff58e8f0d1bb0301eceadecee7a2ade.png)

UE 5.2.1  
Android Studio 4.0

---

<div class="post-metadata">

**Author:** ![BingoUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BingoUE](https://forums.unrealengine.com/u/BingoUE)\
**Post date:** [July 30, 2024, 7:10am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/5 "2024-07-30T07:10:16Z")

</div>

Same issue on Samsung mobile with Android14

---

<div class="post-metadata">

**Author:** ![THIRTEENDAYS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thirteendays/32/1056624_2.png) [@THIRTEENDAYS](https://forums.unrealengine.com/u/THIRTEENDAYS)\
**Post date:** [July 31, 2024, 3:52pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/6 "2024-07-31T15:52:32Z")

</div>

Hi, I had a similar bug when I tried to upload game to Google Play Console last year. The game launched completely normally after packaging, but after sending to the console, the game crashed at startup. I was suffering with API 33 then. Now, apparently, the same problem with API 34. If you disable Automatic Integrity Protection in the Google Play console, the game starts normally and does not crash on startup, even if the Google PAD plugin is enabled.

 ![Screenshot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/a/4aa3286f5661fa7e10348b074a1e7a456f81fc52.png)

---

<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 9, 2024, 10:38am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/8 "2024-08-09T10:38:05Z")

</div>

did anyone figure out why this occurs with googlepad? currently android studio is saying something to do with render index 1 and 2, keeps repeating this over and over, it seems maybe googlepad is interfering with the way the unreal app works?

---

<div class="post-metadata">

**Author:** ![VMukesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VMukesh](https://forums.unrealengine.com/u/VMukesh)\
**Post date:** [August 12, 2024, 10:52am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/9 "2024-08-12T10:52:49Z")

</div>

Do u guys have any Save issue in Target SDK 34?  
my save game object and files stored in internal directory are not saving

---

<div class="post-metadata">

**Author:** ![Rush\_At\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rush_at_games/32/969833_2.png) [@Rush\_At\_Games](https://forums.unrealengine.com/u/Rush_At_Games)\
**Post date:** [August 21, 2024, 3:28pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/10 "2024-08-21T15:28:55Z")

</div>

Hope the solution for black screen at startup is already known… just updating the solution for anyone that helps!  
I tested it on UE 5.3.2 for Android targetAPI=34, CompileAPI=33, Build Tools=34.0.0, minAPI & NDK API=28 .

============== Add RECEIVER\_EXPORTED flag in registerReceiver() ==============

…\Engine\Build\Android\Java\src\com\epicgames\unreal\GameActivity.java.template

> if (Build.VERSION.SDK\_INT \>= Build.VERSION\_CODES.TIRAMISU) {  
> registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION\_RUN), RECEIVER\_EXPORTED);  
> } else {  
> registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION\_RUN));   
> }

…\Engine\Build\Android\Java\src\com\epicgames\unreal\BatteryReceiver.java  
…\Engine\Build\Android\Java\src\com\epicgames\unreal\HeadsetReceiver.java  
…\Engine\Build\Android\Java\src\com\epicgames\unreal\VolumeReceiver.java  
…\Engine\Build\Android\Java\src\com\google\android\vending\expansion\downloader\impl\DownloaderService.java

> import android.os.Build;  
> if (Build.VERSION.SDK\_INT \>= Build.VERSION\_CODES.TIRAMISU) {  
> activity.registerReceiver(receiver, filter, android.content.Context.RECEIVER\_EXPORTED);  
> } else {  
> activity.registerReceiver(receiver, filter);  
> }

* * *

============== Update billing library version from 6.0.0 to 7.0.0 ==============  
…\Engine\Plugins\Online\Android\OnlineSubsystemGooglePlay\Source\OnlineSubsystemGooglePlay\_UPL.xml

> implementation ‘com.android.billingclient:billing:7.0.0’

* * *

---

<div class="post-metadata">

**Author:** ![Rush\_At\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rush_at_games/32/969833_2.png) [@Rush\_At\_Games](https://forums.unrealengine.com/u/Rush_At_Games)\
**Post date:** [August 21, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/11 "2024-08-21T15:45:46Z")

</div>

I don’t see any problem with save game on targetSDK 34 on Android 14 device.

---

<div class="post-metadata">

**Author:** ![Eduardozu\_six66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eduardozu\_six66](https://forums.unrealengine.com/u/Eduardozu_six66)\
**Post date:** [August 21, 2024, 6:23pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/12 "2024-08-21T18:23:41Z")

</div>

Im trying to implement this solution my app open and crash too, where number lines i need to add this code?

---

<div class="post-metadata">

**Author:** ![Rush\_At\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rush_at_games/32/969833_2.png) [@Rush\_At\_Games](https://forums.unrealengine.com/u/Rush_At_Games)\
**Post date:** [August 22, 2024, 4:31am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/14 "2024-08-22T04:31:15Z")

</div>

Hey, [  
@Eduardozu\_six66  
 ](https://dev.epicgames.com/community/api/user_profiles/tab-redirect/about?discourse_username=Eduardozu_six66)  
On all the .java files mentioned in my earlier reply, search for ‘registerReceiver’ and replace it with corresponding code snippet I shared above. That should work.

Note: import statement can be at top of the file along with other imports

And finally update the billingclient version in OnlineSubsystemGooglePlay\_UPL.xml, just search and update.

---

<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 24, 2024, 11:08am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/15 "2024-08-24T11:08:25Z")

</div>

@Rush_At_Games  
Would you happen to know if it is possible to apply this solution on 4.27.2?

I tried it and it gave me unidentified/missing symbol errors for all of the RECEIVER\_EXPORTED related additions.

It’s fine if you don’t know, I’m just desperate right now because this is the quite literally the only solution I’ve seen on this GooglePAD Android 14 subject and this is the last required fix for my game before I can roll it out.

---

<div class="post-metadata">

**Author:** ![Rush\_At\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rush_at_games/32/969833_2.png) [@Rush\_At\_Games](https://forums.unrealengine.com/u/Rush_At_Games)\
**Post date:** [August 24, 2024, 1:52pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/16 "2024-08-24T13:52:37Z")

</div>

You may try using android.content.Context.RECEIVER\_EXPORTED, when android.content.Context is not already imported in your .java file

---

<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 24, 2024, 3:03pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/17 "2024-08-24T15:03:16Z")

</div>

I checked all of the files and they already have the: import android.content.Context;  
Do I have to rebuild the engine solution in the project’s visual studio file?

I’ll also add that I don’t have any [if (Build.VERSION.SDK\_INT \>=] that end with Build.VERSION\_CODES.TIRAMISU

Tough, I like to assume that it doesn’t matter much when the things u need to change are in the - registerReceiver command.

---

<div class="post-metadata">

**Author:** ![Rush\_At\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rush_at_games/32/969833_2.png) [@Rush\_At\_Games](https://forums.unrealengine.com/u/Rush_At_Games)\
**Post date:** [August 25, 2024, 4:55am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/18 "2024-08-25T04:55:15Z")

</div>

Yes, please rebuild the UE for Android in Visual studio after these changes.

Conditional check is recommended as the new flag, 3rd arg of registerReceiver() is available from SDK API 33 or above running devices.

---

<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 25, 2024, 9:53am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/19 "2024-08-25T09:53:56Z")

</div>

K, I tried what u said.

I added Context.RECEIVER\_EXPORTED instead of RECEIVER\_EXPORTED as I read somewhere else that the prefix is needed to pin point what import it belong to.

But now I only got errors from the GameActivity.java file. (not the .template one.)

* * *

UATHelper: Packaging (Android (ETC2)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:244: error: package com.google.android.gms.ads.identifier does not exist

UATHelper: Packaging (Android (ETC2)): import com.google.android.gms.ads.identifier.AdvertisingIdClient;

Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:245: error: package com.google.android.gms.ads.identifier.AdvertisingIdClient does not exist

UATHelper: Packaging (Android (ETC2)): import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info;

UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c “D:\Misc\Unreal projects\ezREMAKE\Intermediate\Android\gradle\rungradle.bat” :app:bundleRelease

* * *

These errors were not here and I was able to package fine before adding all of the Context.RECEIVER\_EXPORTED Lines.  
I also tried with just RECEIVER\_EXPORTED, and it gave me the same with more errors.

Do I have to include something in my build.cs or build.gradle files?

---

<div class="post-metadata">

**Author:** ![Rush\_At\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rush_at_games/32/969833_2.png) [@Rush\_At\_Games](https://forums.unrealengine.com/u/Rush_At_Games)\
**Post date:** [August 27, 2024, 7:46am UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/20 "2024-08-27T07:46:03Z")

</div>

Hey,  
I’ve additional changes for Ads support as documented at [Upgrade to Google Play Services Ads v22.6.0 for Android Builds](https://forums.unrealengine.com/t/upgrade-to-google-play-services-ads-v22-6-0-for-android-builds/1769977)

Not sure, if this may help you… Please check it.

Note: These changes are done and tested on UE 5.3.2

Thanks

---

<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, 12:46pm UTC](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830/21 "2024-08-27T12:46:47Z")

</div>

Thanks for additional help.

I added: implementation “com.google.android.gms:play-services-ads:15.0.0”  
in the engine’s build.gradle file and that seems to have fixed it, but I’ll keep in mind your documentation that you’ve linked as I can imagine that outdated google ads versions may cause problems later down the line.

As for the main problem of this topic, turns out I was using SDK version 29 for compiling, so I’ll be retrying this with SDK 34, because If I’m correct, the RECEIVER\_EXPORTED flag was introduced in SDK 33, that’s most likely why it couldn’t find the symbols.

Thanks, anyhow.

---

<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.

[Next page](https://forums.unrealengine.com/t/android-14-sdk-34-black-screen-on-startup/1703830.md?page=2)
