Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android NDK - Execution failed for task ndkBuild

Well here is the source code of a project (Router Keygen) that i am trying to debug on my device. Unfortunately, when i run it i get the following error:

Error:Execution failed for task ':routerKeygen:ndkBuild'.
> Process 'command 'C:\Users\Dev\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd'' finished with non-zero exit value 2

Show many posts. I can't understand whether ndk is correctly installed (on my computer) or not. I just want to know if there is anyone who tried Router keygen and had the same error like me. If not, should i try to move ndk somewhere else?

like image 657
BooDoo Avatar asked Nov 20 '16 21:11

BooDoo


2 Answers

I don't know if that's good. I went to

C:\Users\Dev\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd

directory and for the ndk-build.cmd i press

Right-Click> Edit and change the cmd file from:

@echo off
%~dp0\build\ndk-build.cmd %*

to

@echo off

THAT works for me

like image 181
BooDoo Avatar answered Oct 24 '22 02:10

BooDoo


I have downloaded and it build successfully. Building on Android Studio 2.2.2. Studio will ask to update gradle click update.

Pkg.Desc = Android NDK
Pkg.Revision = 12.1.2977051
like image 1
Qamar Avatar answered Oct 24 '22 00:10

Qamar