Android Build Failed 4.8.2

I am able to connect a Galaxy Note 4 to my PC and launch this project on the device.

I am as yet unable to package a development build of the game. The process always fails and I really don’t know what the cause is. I cannot package the project for Windows either.

Can anyone please offer some direction in how to resolve this. I had to restart this entire project from scratch once already as I could never get it to package, and now I’ve taken an entirely different approach and it still doesn’t work. I’m almost ready to throw my hands up and start learning C#

I have had the same problem after making a clone of the game and removing all unneeded assets, but just in case I’ve attached the log files from the non-stripped-down version.

I also can’t get the game to scale at all to other window sizes, but that’s another issue that I’ll address afterwards.

Apologies for the frustrated tone. I’m just done in by what should really be a really simple project.

50598-cook.txt (807 KB)

I cleaned up the project again and tried building using almost every variant.

I now can’t even get the game to launch on the device using the Project Launcher, always with the same error:

Unable to read full header.

The image attached labelled as such shows the error after attempting to launch on the device from the Project Launcher, and after once trying to run the game manually on the device whilst still attached to the PC.

I’ve also attached the cook.txt and UAT_Log.txt from the latest run. Looks very familiar.

Is Unreal capable of creating projects for Android devices?

[link text][1]
[link text][2]
[link text][3]

I also tried to build for Windows. Log files are attached to this comment.

Same problem.

[link text][1]
[link text][2]

50757-cook.txt (199 KB)
[2]: 50758-uat_log.txt (252 KB)

Hey ,

I will continue to look over the provided but first of all, I want to know whether or not you’ve been able to successfully build a unmodified template from the Epic Games Launcher to Android without any complications? If you are unable to, I would highly suggest reviewing this [documentation about Mobile Game Development][1]!

Looking forward to hearing back from you, thanks!

General Mobile Development for Unreal Engine | Unreal Engine 5.1 Documentation

Thank you, . I created a fresh build of the Top Down template and successfully first Launched the game on the device directly.

I then successfully packaged the project for ASTC, which seems to be correct for the Note 4, and the build was successful. The log file is attached to this comment.

I ran the batch file and the game installed on the phone and I can play it, so there seems to be nothing wrong with my setup for the build process and the problem must be in the project.

If you can continue to look into it I would be grateful. I’m going to see if I can migrate my content into the template I just created and see if that works at all.

Oops, forgot to add the log file attachment, here it is.[link text][1]

50881-tdlog.txt (1.69 MB)

OK, I tried a migration and attempted to launch on device, but that fails even faster. I’ve attached the log for that attempt as well.

[link text][1]

50887-tdbw.log (97.1 KB)

Best regards
‘’

Hey,

Please delete your Intermediate/Android/APK and Build/Android/src folders from your project folder. It’s possible when you migrated that you migrated some folders you didn’t need in this project over. Once you’ve done that, please try again and let me know what happens.

I appreciate your patience, have a great day!

Hi ,

Thank you for continuing to look into this.

I did a proper cleanup, then did everything asked. It still fails. Here are the :

[link text][1]
[link text][2]

51131-cook.txt (191 KB)
[2]: 51132-uat_log.txt (243 KB)

Hey ,

After reviewing the provided I see the following issue with one of your blueprints.

Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 11] 
UE4Editor-Cmd: Cast of Class /Script/Engine.BlueprintGeneratedClass to BlueprintGeneratedClass failed

Do you have any blueprint that has a cast of a class within it? If so, look over that blueprint and ensure there aren’t any errors with the nodes, you may want to recreate the node just to be sure.

Also, looking through I noticed report UE-15988 which seems to have the same error that your project is displaying. The developers need reproduction steps to replicate this error so if you could please provide us screenshots, or your project that would be really helpful in correcting this error.

I appreciate your assistance and hope to hear from you soon!

Hey ,

I have not heard from you in quite a few days and for that reason, I will be closing this thread as resolved at this time. However, if you have any further questions regarding this topic, do not hesitate in replying back as your comment will open this thread back up for additional assistance.

Thank you and have a nice day!