Failed to Build/install App from Unreal Engine to ML2,

when trying to build examples i get this message:
: adb am start command line override: -project=“../../../Examples/Examples.uproject” /Game/Levels/HelloCube -Messaging -CrashForUAT -SessionId=4F05250D4DE6BFAC076799B4047E18FF -SessionOwner=“bles_ri” -SessionName=“Launch On Device”
LogPlayLevel: UAT: 11-04 12:16:50.105 11081 11122 D UE : Final commandline: -project=“../../../Examples/Examples.uproject” /Game/Levels/HelloCube -Messaging -CrashForUAT -SessionId=4F05250D4DE6BFAC076799B4047E18FF -SessionOwner=“bles_ri” -SessionName=“Launch On Device” (len 193)
LogPlayLevel: UAT: 11-04 12:16:50.105 11081 11122 D UE : Created sync event
LogPlayLevel: UAT: 11-04 12:16:50.110 11081 11081 D UE : [GameActivity] ==============> GameActive.onResume complete!
LogPlayLevel: UAT: 11-04 12:16:50.150 11081 11081 D UE : [GameActivity] === Thermal status changed to 0
LogPlayLevel: UAT: 11-04 12:16:50.167 11081 11122 D UE : After GAndroidWindowLock in AndroidMain
LogPlayLevel: UAT: 11-04 12:16:50.178 11081 11122 D UE : Project file not found: ../../../Examples/Examples.uproject

it registers as an app on the ML2 but when executing it doesn’t show anything.

i’m not sure but maybe it has something to do that when building the engine itself i get this error:

Fehler MSB3073 Der Befehl “…\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild -architecture=x64” wurde mit dem Code 6 beendet. UE5 C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44

but everything works properly until building. What could the reason be?

i installed everything according to the starter guide so far

Hey @blessmann.richard ,

Welcome to the Magic Leap Developer Forums!
From the logs you shared, it seems like you might not be packaging the project for Android and instead are trying to build the project directly on to the Magic Leap Device.

The Magic Leap requires you to build for Android (.apk files).

Try a proper “Package Project” build, not “Launch On”

Instead of Launch → Device, go to:

File → Package Project → Android → Android (Magic Leap)

Then install the generated .apk via:

adb install -r path/to/YourProject-arm64.apk

Let me know if this helps!

Best,
Corey

1 Like