Default project android "ndk-build.cmd" build fail

UnrealBuildTool Exception: ERROR: E:/Games/Unreal Tournament//android-ndk-r12b/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1

i’ve been getting this error ever since i got the engine to properly recognize my device.

It is a default blueprint project just to test my phone, nothing else.

it’s been hours and hours reading on the internet trying all kinds of things, but it has come down to asking about it myself[link text

Symbiont71,

Please make sure that you’ve installed the SDK Tools for Android and double check your Android settings. In the SDK Manager, make sure you’re on 1R4u2. Here are some visual aids for you:

![98373-androidsdk.jpg|604x316](

Thanks!

Firstly should not be living in a path with spaces move it out of the “Unreal Tournament” folder and maybe all your problems will go away.

I had something similar though so in order to really check out what the problem was I had to run ndk-build from the command line.

Go to the ndk folder. …\androind-ndk-r12b

Run ndk-build and specify a couple of things. Firstly the APP_ABI and NDK_DEBUG values contained in the output log. You need to set the NDK_PROJECT_PATH which you should find in the Intermediate folder in your project

But important here is also NDK_LOG = 1 which will give you more info from the NDK makefiles.

ndk-build APP_ABI="armeabi-v7a" NDK_DEBUG=1 NDK_PROJECT_PATH="<wherever your project is>\Intermediate\Android\APK"  NDK_LOG=1

If that doesn’t show you anything interesting you can also add -d at the end which will give you debug output from make.exe itself

In my case it was security permissions. Checking the Event Viewer > Application and Service Logs > Microsoft > Windows > AppLocker > MSI and Script revealed that files with the name like MAKE21-028-1.BAT were being prevented from running in \AppData\Local\Temp. (our office security policies forbid executables being run in the temp folder - which is a huge pain)

Running ndk-build with the -d option confirmed that make.exe was trying to run these files.

To work around this I edited ndk-build.cmd to temporarily override an environment variable called ‘TMP’ which I guess is how make.exe finds that folder.

set TMP=c:\UnrealProjects\Temp

I can write and execute in that folder and after I did that everything was fine. No more permission errors. No need to run elevated or anything.

I got It fixed By
“Just copying my NDK folder to C:\android-ndk-r12b and also run the editor as admin”.

AND also Update new path in android SDK

TY

hey guys, I had the same problem when I 'am trying to deploy my game on my tablet android 5.1 (API 22) so this is what I did :

  • Project Settings > Android >
  • check Support arm64 [aka arm64-v8a]

just that and then I had the Gradle problem I just unchecked the “Enable Gradle Instead of Ant”

Hope this helps :slight_smile:

None of the above solutions worked for me but this settled everything

[link text

Android packaging error - Mobile - Epic Developer Community Forums

Try it out.good luck

download and instal sdk and ndk and jdk in this video :