Unreal Engine 5.4.2 SDK NDK JDK 0 Android Errors App Store

The past Android Set up of SDK NDK JDK, that worked amazing on all the other versions, is not working on Unreal Engine 5.4.2, mainly because you need an updated gradle (JAVA) and the past Android Set up only works with JAVA version 1.8.0_242

First you need to clean the system of any trace of the previous SDK NDK JDK - it is not enough to unistall them, you also need to delete the following folders:

C:\Program Files\Android
C:\Users\user.android
C:\Users\user.gradle
C:\Users\user\AppData\Local\Android
C:[Your UE project]\Build\
C:[Your UE project]\Intermediate\
C:[Your UE project]\DerivedDataCache

also, open “This PC”, right-click in the empty space inside the window, and select “Properties”, in the opened window, select “Advanced system settings” > “Environment Variables”, delete the following environment variables:

ANDROID_HOME
JAVA_HOME
NDK_ROOT
NDRROOT
Restart your PC.

Now, let's download and install the Android Studio - I have found that a good stable and working version is the Android Studio Jellyfish Patch 2

https://developer.android.com/studio/archive - Here, in the Android Studio download archives, you can find the Android Studio Jellyfish | 2023.3.1 Patch 2 June 10, 2024

Follow the installer instructions, do not check an extra box, just do the basic install - after the installation is completed - you need to set the JAVA_HOME “Environment Variables” to point to the JAVA version inside the Android Studio (inside the install folder from Android Studio is a folder ‘jbr’ - set JAVA_HOME “Environment Variables” to the folder ‘jbr’

Now open Android Studio - open the Configure dropdown and click SDK Manager, click the SDK Tools tab, check the box for Android SDK Command-line Tools latest version 13 - click Apply to download and install this component, after that, click OK to dismiss the window and close the welcome dialog.

Restart your PC.

Setting Up Android NDK - go to C:/Program Files/Epic Games/UE(your engine version)/Engine/Extras/Android/SetupAndroid.bat - next run the SetupAndroid.bat it will instal the NDK version that will work.

Inside Ureal Engine you can choose now ‘Target SDK version’ to 35

Restart your PC.

Now packaging should work. I hope the solution above works for your project without any problems, if you encounter problems, leave a comment and I will try to help you.

If you encounter [The Android Error] Play Billing Library version AIDL

Error

Your app currently uses Play Billing Library version AIDL and must update to at least version 5.2.1 to make use of the latest monetization features on Google Play.

Solution

Make sure your AndroidManifest.xml contains an entry with name com.google.android.play.billingclient.version

The AndroidManifest.xml file is usually located in C:\Users\(your username)\Documents\Unreal Projects\(your project)\Intermediate\Android

Billing dependencies would be found only in APKs that require the com.android.vending.BILLING permission

Solution 2 if you have multiple ...Manifest.xml files in the Intermediate\Android folder

Go to "C:\Program Files\Epic Games\UE_5.4\Engine\Build\Android\Java\gradle\app\build.gradle"

Open the build.gradle file with a text editor (before making changes to it make sure the file is not Read only, if it is, open the file Properties, uncheck the tick box and apply)

Add the following line of code in the dependencies section

def billing_version = "7.0.0"

implementation "com.android.billingclient:billing:$billing_version"

or

def billing_version = "7.0.0"

implementation "com.android.billingclient:billing:7.0.0"

Billing dependencies would be found only in APKs that require the com.android.vending.BILLING permission

also, go to

C:\Program Files\Epic Games\UE_5.4\Engine\Plugins\Online\Android\OnlineSubsystemGooglePlay\Source - search for the file OnlineSubsystemGooglePlay_UPL.xml

search for the following piece of code and change the 6.0.0 to 7.0.0 - before making changes to it make sure the file is not Read only, if it is, open the file Properties, uncheck the tick box and apply

dependencies {

implementation 'com.android.billingclient:billing:7.0.0'

}

Below are some common errors for a broken Android Set up of SDK NDK JDK

ERROR: cmd.exe failed with args /c “C:\-\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug.

ERROR: Android toolchain NDK r25c not supported; please use NDK r21 to NDK r23 (NDK r21b recommended)

Error: cmd.exe failed with args /c “C:\-\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug

PackagingResults: Error: Exception org.codehaus.groovy.GroovyBugError [in thread “Daemon worker”]

PackagingResults: Error: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

UATHelper: Packaging : Could not initialize class org.codehaus.groovy.reflection.ReflectionCache UATHelper: Packaging : Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread “Daemon worker”]

Upgrade Google Play Services Ads from 18.1.0 to 22.6.0 Android Error

[The Android Warning] com.google.android.gms:play-services-ads-lite:18.1.0

Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads-lite) has reported version 18.1.0 as outdated.

From September 16, 2024 00:00 (UTC) you won't be able to release versions of your app containing this SDK version to production or open testing. Update to a newer version (20.0.0+).

[The Android Warning] Update your target API level by August 31, 2024 to release updates to your app

From August 31, 2024, if your target API level is not within 1 year of the latest Android release, you won't be able to update your app.

[The Android Warning] Action required: Migrate to supported version of Google Play Billing Library

By Aug 31, 2024, all new apps and updates to existing apps must use Billing Library version 6 or newer. If you need more time to update your app, you will be able to request an extension until Nov 1, 2024.

About Me - I'm an indie game dev, active on Unreal Engine since 2019, I made multiple games for PC and Android platforms - if you want to support a fellow dev, check out my games on Google Play Store - I'm also a music producer and web dev - if you want to follow my projects the links are above. Have a nice day!

Read more articles about Unreal Engine

Unreal Engine 5.4.2 SDK NDK JDK 0 Android Errors App Store

Unreal Engine 5 com.google.android.play:core:1.10.0

Unreal Engine 5 XAPK File Validation Failed

Unreal Engine target API level, SDK issues, Billing Library errors Solution

Unreal Engine Migrate a Project to a New Engine Version

Unreal Engine Android App Bundle (Different Type of Key Store) To Upload .aab on Google Play Store

Unreal Engine - How To Generate Key Store for .apk (Sign Projects for Release)

Unreal Engine 5 on Android - Permission Required, Storage, Error Screen

Unreal Engine 5 androidx.fragment:fragment:1.0.0 outdated

Unreal Engine 5 Update Google Play Billing Library 3, 4 or 5 to 6

Unreal Engine 5 Package Project Android Set up SDK NDK JDK 2024 update

Comments