Hi,
What is your UE version?
I’ve found simple workaround for androidx.fragment:fragment:1.0.0.
- Set up project in Android Studio in the location ‘yourproject’\Intermediate\Android\gradle
- Open File->Project Structure…
- Select Dependencies->AllModuls->androidx.fragment:fragment:1.0.0
- Check dependencies in TargetModules/Artifacts
- Find all places where libraries, which contains androidx.fragment:fragment:1.0.0, are implemented. (In my project these are two files: gradle\app\arr-imports.gradle and gradle\permission_library\build.gradle
- Find where these libraries are implemented and at the end put:
constraints.implementation ‘androidx.fragment:fragment:1.3.6’
in the dependency{} - Sync build
- Check external Libraries in the project section
- If there are two versions of androidx.fragment:fragment (1.0.0 and 1.3.6), go back to 2. and check which library contains version 1.0.0
- Build AAB using Android Studio. (by default only release version contains Key Store)
It’s not the best solution, because you have to edit files for every build once again. I’ve tried to implement solution using UPL, but I failed.
My file: gradle\app\arr-imports.gradle with implemented my solution:
repositories {
maven { url uri('D:/UnrealEngine/UE_5.3/Engine/Source/ThirdParty/Android/extras/google/m2repository') }
maven { url uri('D:/UnrealEngine/UE_5.3/Engine/Source/ThirdParty/Android/extras/android/m2repository') }
}
dependencies {
implementation 'com.google.android.gms:play-services-auth:18.1.0'
implementation 'com.google.android.gms:play-services-nearby:18.1.0'
implementation 'com.google.android.gms:play-services-games:18.0.1'
implementation 'com.google.android.gms:play-services-plus:17.0.0'
constraints.implementation 'androidx.fragment:fragment:1.3.6'
}