Android Build Failed Unknown Error

Getting this error:

PackagingResults:Error: Error Launch
failed! Unknown Error

What’s wrong?


Unreal (4.7.2)

Nexus 4 (5.0.1)

Android SDK / NDK + Java SDK installed and configured in project settings.

Device shows up in Windows device manager and the UE4 launcher drop down.

Output log - http://pastebin.com/keik6QGS

Your error from your log:

"ERROR: C:/Program Files (x86)/Android/android-ndk-r10d/ndk-build.cmd failed with args APP_ABI=“armeabi-v7a " NDK_DEBUG=1”

I have the same error, but on mac – 47-os-x-android-packaging-ndk-fails

On Windows, possibly you can try to run engine as administrator, like here – android-packaging-error-ndk-buildcmd

Didn’t help, I get the same errors.

After some more Google-Fu I came across this.

Seems the NDK must have ZERO spaces in the file path, so if you install it into ‘Program Files’ it’s not going to work.

Possibly you need to enable the security setting on your phone to “allow installation from unknown sources”.
This fixed the “build failed unknown error” for me, at least.

I already fixed it, you can’t have spaces in the NDK file path.

Yep, I also found this solution and answered in my question topic few days ago.

helped me
+1

My apologies, but how do i alter the NDK file path? Thank you in advance.

In ‘Project settings’, there should be an option for Android and one for Android SDK. The paths you need are all set in in the Android SDK page.

Thanks. It’s a pity that it won’t let you install in Program Files.