Hi! I have encountered such a strange problem. Does anyone know how to solve it? I’ve been looking for answers for a long time, but I haven’t found them
UE4 GitHub version (4.27.2)
Visual Studio 2022
Android studio 4.0.0
min SDK = 23
Target SDK = 31
SDK api = latest
NDK api = android-23
I edited the aar-import file, but this method did not help me either.
After a lot of suffering and a long time, I was able to find a solution to this problem. I don’t know what this is related to, but something is happening in the UE and for some reason it starts ignoring some UPL files that it used without any problems before. In general, the solution turned out to be quite simple.
You need to find the file build.gradle, which is on this path …\Engine\Build\Android\Java\gradle\app\ and in it in the dependencies section (this is at the very bottom) you need to force the engine to compile this library using the command compile “com.google.android.gms:play-services-plus:11.8.0”. By the way, later the Unity ADS plugin stopped working for me with the same problem. I had to also write it in build.gradle → compile “com.unity3d.ads:unity-ads:4.2.1”.
I hope I helped someone.