Android NDK - Completed for ndkBuild task

Well here is the source code of the project ( Router Keygen ), which 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 a lot of posts. I cannot figure out if ndk is installed correctly (on my computer) or not. I just want to know if there is anyone who tried the Router keygen and had the same error as me. If not , should I try moving ndk to another location?

+5
source share
2 answers

I do not know if this is good. I went to

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

and for ndk-build.cmd I click

Right click> Modify and modify cmd file with

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

to

 @echo off 

Thats works for me

+5
source

I downloaded and successfully built it. Based on Android Studio 2.2.2. The studio will ask to update the gradle update.

 Pkg.Desc = Android NDK Pkg.Revision = 12.1.2977051 
+1
source

Source: https://habr.com/ru/post/1260049/


All Articles