For those of you still using UE5.4 with Convai and publishing to Android, I thought I would share my experiences. Publishing to Console is a bit more involved than deploying to your mobile device.
Here are all the the steps I needed to do:
- While Epic say not to do it, migrate Android SDK to version 35:
-
Upgrade Gradle to 8.9
- C:\Program Files\Epic Games\UE_5.4\Engine\Build\Android\Java\gradle\build.gradle
}
dependencies { classpath project.hasProperty('ANDROID_TOOLS_BUILD_GRADLE_VERSION') ? project.property('ANDROID_TOOLS_BUILD_GRADLE_VERSION') : 'com.android.tools.build:gradle:8.9.0' }-
C:\Program Files\Epic Games\UE_5.4\Engine\Build\Android\Java\gradle\gradle\wrapper\gradke-wrapper.properties
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
-
Cmd
- .\gradlew.bat --gradle-version 8.9 --distribution-type bin
-
Fix Google Play AIDL submission
- C:\Program Files\Epic Games\UE_5.4\Engine\Build\Android\Java\gradle\app\build.gradle
- Add these two lines in the dependencies block
def billing_version = “6.1.0”
implementation “com.android.billingclient:billing:$billing_version”
- Add these two lines in the dependencies block
- C:\Program Files\Epic Games\UE_5.4\Engine\Build\Android\Java\gradle\app\build.gradle
-
Install Android SDK 35
-
Install NDK → 26.2.11394342
-
Adjust Android.jar file
- Copy C:\Users\\AppData\Local\Android\Sdk\platforms\android-34\android.jar
- Past C:\Users\\AppData\Local\Android\Sdk\platforms\android-35\android.jar
- Paste C:\Users\\AppData\Local\Android\Sdk\platforms\android-35-ext14\android.jar
-
Reset Project Settings->Platforms - Android SDK
- Location of Android NDK=C:/Users//AppData/Local/Android/Sdk/ndk/26.2.11394342
- SDK API Level = android-35
- NDK API Level=android-26
-
Project Settings->Platforms Android
- Target SDK version=35
-
Update Convail Plugin (3.6.7)
- Default plugin from FAB causes .aab creation to fail
- UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:checkReleaseDuplicateClasses’.
- Updating the Convail Plugin seemed to fix the problem
- Default plugin from FAB causes .aab creation to fail
-
Turn off Android File Share Plugin
- New plugin creates unhappiness with the Android File Share plugin
- Simply turn it off
- New plugin creates unhappiness with the Android File Share plugin
-
I think this is all that I need to adjust beyond just deploying right to device.
If you have and additional steps or insights, please advise.
Happy Android publishing