UE 4.27.2 - How to build for target SDK 33 (or 34) !

The problem is something to do with the Splash Image (SplashActivity) where something is with the android:exported=“true”.
When I untick the Launch Splash Image, the app is stuck on the game icon on the full screen, nothing else.

Any help would be appreciated! I don’t have any more ideas what to do and what to try.

Please who has solved this issue? APK fails to install on device.

doesnt work for 5.0.3 unreal, target api 35

I’ve gone throught with Source code of UE 4.26.2. There are easy tutorials how to install it on your pc.

Then I just added this line android:exported as per the comment above in the same file.

Then, built and installed with USB Debugging without issues.

Thank you for the help!

I’ve managed to get the app published on Play Console with API 33.
I was missing the java compatibility in the Build gradle file.

Now, I will go on to try and see if it works for SDK 34 as Google requires that.

Thanks!

ive addressed the issue here (with solution):

the build was working, but after moving some sdks and ndks and jdks to different drive for space purposes i wasnt able to auto install bat, so manual install i think was causing issue, im not sure, you can do some tests here to inform me, thanks

Same for me I have ran out of idea SDK 33,34 and 35 does not work for me at all

i was able to address the issue here:

see if it fixes your issue

For more insight, add the android:exported=“true” using Android Studio.

Copy this folder URL from your project.

C:\YourProjectName\Intermediate\Android\APK\Gradle

Open it on Android Studio

Navigate to manifest.xml in the folder hierarchy.

Add android:exported=“true” to the beginning of every angle bracket having <activity

Save and build APK with Android Studio.

I am using unreal engine 4.27.2 please has anyone figured how to package with SDK 34 using API 34 any help please :pray::pray:

1 Like

yes it work as well , + billing library 6.0.0 //// but google play console recommendation says we must update abl to 6.0.1 at least or higher … 6.0.0 doesnt work any more … play console gives me eroor abl must be updated , i tried many ways … two weeks now passed…im still confused , :face_with_head_bandage: unreal engine developers must guide us through the process of updating this things like abl 7 and abl 6.2 or what ever , because when we open our project gradl file in android studio 4.0.0 , if we update the billing library to 7 or 6.0.1 the error apears in the gameactivity.java and the theplaygooglehelper , and many , because of in app purchase system is not configured well … some one can understand me right !!! thank you …

1 Like

Thanks for the guide! I did follow it to the letter, I am still getting errors:

Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:50: error: duplicate class: com.epicgames.ue4.WebViewPositionLayout

Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:68: error: duplicate class: com.epicgames.ue4.WebViewControl

duplicate class: com.epicgames.ue4.WebViewPositionLayout

Z:\app\src\main\java\com\epicgames\ue4\copy- WebViewControl - Copy.java:122: error: cannot find symbol

and others…

I am using:
UE: 4.27.2
Android Studio 4.0
SDK and NDK settings: as mentioned above in the guide
Windows 8.1

Any help would be appreciated please… :innocent:

I’ve managed to get the app published on Google Play.

I did build it with compiled version of UE 4.26.2 for API 34, unticked the AAB bundle creation, got the project opened in Android Studio (ProjectName\Intermediate\Android\APK\Gradle) and generated the bundle from there. I used the key I had from before for signing as well. Google Play accepted it without any issues and it’s working.

Thanks for your help here, it did worked for me.

Is this still applicable today? I am getting the error still trying to get SDK 34 for UE 4.27.2 after doing all of this.

When I did this for SDK 33 it worked. Now Google Play is requiring SDK 34 it says.

Does this work for the “Intermediate\Android\gradle\rungradle.bat” :app:bundleRelease" error when trying to get SDK 34 compiled?

EDIT: I edited UEDeployAndroid.cs to make string CompileSDKVersion = “33” but I get the same error.