Hello everyone! I’ve been desperate for days trying to find an answer. Please, can someone help me with this?
So since it is needed to update to SDK 34, unreal version 5.4 required.
My project was made on 5.1. Everything were fine, but after I downloaded and upgraded my visual studio alonside with unreal engine it just stopped opening, telling me I have to ugrade file from source.
But I needed to go on 5.4 anyway. I just migrated the files and make sure it’s all good. But, when packaging on android (on windows its fine…) I get this error:
Text logs will be attached.
I’ve been scoutering around the net and this is my current settings, also android studio:
Log.txt (37.4 KB)
I am desperate since it’s been days and no possible answer! Can someone please help?
I really love my game, but I just cannot build it on android tho windows package working perfectly…
This could be related to a plugin that cannot compile for Android. The ‘Firebase features’ should work, I don’t know if it require any special configuration for Android.
I think you should create a new project from one of the templates and try the Android packaging for this one first, just to rule out general issues with the Android build setup and SDK. If there the packaging works, add the Firebase features plugin and try again.
Hey! It’s not the case. I disabled and enabled plugin, tried new projects and clean… And it seems like the problem is in c++.If i make a c++ project, it just throws me an “Unhandled exception: System.IndexOutOfRangeException: Index was outside the bounds of the array” but I guess it has to do something with visual studio (not sure)
I used blueprints and followed the instruction from this post: WARNING:R8: An API level of 34 is not supported by this compiler. Please use an API level of 33 or earlier (App must target Android 14 (API level 34) or higher) - #15 by Skyboy
And it works only for blueprint projects, tho it still throws:
" UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): This warning can be suppressed by adding
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): android.suppressUnsupportedCompileSdk=34
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): to this project’s gradle.properties"
I guess the problem is in gradle.properties, but I have no idea where to find it xD
So a template c++ project too is not building ?
I tried blueprint project and then added c++ (because my project is in blueprint)
i didn’t try to use only c++ it is no use for me
I actually found a lot of ppl stumbling upon different types of issues with sdk 34 and unreal
Seems like there are some real problems
My visual studio settings btw:
i followed many tutorials and all of them are the same
but like, just for clarity, So a new template blueprint project builds fine, then you will add a c++ class and now it can’t build?
Yea. I deleted c++ files from my project and it’s working fine again xd
I am currently trying to make work sdk 34 with my unreal and I added a lot of stuff inside. But I guess it doesn’t really matter since I am experimenting with android studio and all jdk ndk sdk.
Btw I kinda managed it to work, tho not really sure whether I am managing to get sdk 34
Now it started throwing off this “Unhandled exception: System.IndexOutOfRangeException: Index was outside the bounds of the array” even in blueprints…
Is there a reason why you installed the engine on a drive with the letter A: ? The error is related to an array in FileSystemReference.cs, so you should take a look at this post.
No reason actually, this letter was automatic (I have only C and A). But nevertheless, after rebooting my PC it builded without any errors. I think this error got thrown because for some reason unreal used to spawn Disks and used them, so yesterday I got like 5 more disks (W, X, Z, Y etc) and after rebooting pc they all dissapeared. Maybe it has to do something with it as well. Anyway thanks for help everyone!
Does anyone know the answer? This error keeps happening to me, after some time working on a project it just comes back
Ok. credits to this topic
I did change letter to M and it’s building okay. If it changes - I’ll update this topic