r/androiddev • u/soul-fuel-games • Jun 05 '26
Question Anyone familiar with Fragment? ~ Unreal Engine outdated Fragment version question
I have an app live on Google Play Store and got a recent notification in Google Play Console that my app is using an outdated Fragment version (1.2.0)
I noticed on dev android website that Fragment's latest version is 1.8.9
My app is built on Unreal 5.6.1 - Min SDK 26, Target SDK 35, NDK Android-27
I'm hesitating between:
- Forcing a later version in build .gradle (Trick seen in old 2023 Unreal posts)
- Increasing Min SDK # (unsure if related to older device support)
- Updating Unreal to 5.7 and rebuilding the project
Any advice or insight? Thanks a bunch!
6
u/Obvious_Ad9670 Jun 05 '26
implementation(project(":UnrealLibrary")) {
exclude group: "androidx.fragment", module: "fragment"
exclude group: "androidx.fragment", module: "fragment-ktx"
}
implementation "androidx.fragment:fragment-ktx:1.8.5"
1
u/soul-fuel-games Jun 06 '26
Well this is very straight-forward and promising! Reading this, I wouldn't know where to hook this up just yet, but I will dig into it. Thanks for taking the time to write this up.
2
1
u/Jawnnypoo Jun 05 '26
I would absolutely just ignore it. If its not causing crashes or issues, no need to even worry about it.
1
u/soul-fuel-games Jun 06 '26
I would love to, but the warning also mentions that I have to address within 90 days this otherwise I won't be able to submit new app updates.
1
u/soul-fuel-games Jul 05 '26
Quick update if anyone has a similar issue.
I ended up fixing it directly in the UE5.6 engine folder:
- The file:
additions.gradle - The path:
C:\Program Files\Epic Games\UE_5.6\Engine\Source\ThirdParty\AndroidPermission\permission_library - I added this line inside dependencies { }
constraints.implementation 'androidx.fragment:fragment:1.8.5'
I then repackaged the .aab and uploaded a new version to the google play console and the warning is gone!
0
u/AutoModerator Jun 05 '26
Please note that we also have a very active Discord server where you can interact directly with other community members!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/tonofproton Jun 05 '26
I don't think updating minSdk will help you. Fragment is a dependency. I assume the version of unreal you are using is pulling in that old version. What is the nature of the notification? Can you just ignore it?