Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2 #47

Closed
BaronZ opened this issue Mar 31, 2015 · 24 comments
Closed

Comments

@BaronZ
Copy link

BaronZ commented Mar 31, 2015

hi, i replace commandLine ndk-build imagepipeline.gradle to ndk-build.cmd and encoutered blow problem
build-local.mk
:imagepipeline:ndk_build_gifimage FAILED
Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.

Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2

@BaronZ
Copy link
Author

BaronZ commented Mar 31, 2015

my environment is windows 7 with android studio 1.1.0, nkd version is r10d

@BaronZ
Copy link
Author

BaronZ commented Mar 31, 2015

F:\dev_tools\android-ndk-r10d\build\core\build-local.mk
Error:(148) *** Android NDK: Aborting . Stop.
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
make.exe: Entering directory F:/1/fresco-master/imagepipeline/src/main/jni/gifimage' make.exe: Leaving directoryF:/1/fresco-master/imagepipeline/src/main/jni/gifimage'
:imagepipeline:ndk_build_gifimage FAILED
Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.

Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2

@hyvenzhu
Copy link

@BaronZ did you solve it?

@wenjianxue
Copy link

The same problem!
I tried to add commandLine param 'NDK_PROJECT_PATH=.' , but other problems :

Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
make.exe: Entering directory D:/github/fresco/imagepipeline/src/main/jni/gifimage' make.exe: Leaving directoryD:/github/fresco/imagepipeline/src/main/jni/gifimage'
:imagepipeline:ndk_build_gifimage FAILED

@wanglg
Copy link

wanglg commented Mar 31, 2015

The same problem!
Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.

A problem occurred starting process 'command 'ndk-build''

@xuwt
Copy link

xuwt commented Mar 31, 2015

Me too! I try to change ndk-build to ndk-build.cmd and add path to local.properties, all failed! How to do?

@arlong
Copy link

arlong commented Mar 31, 2015

I have same problem!

Error:(148) *** Android NDK: Aborting . Stop.
:imagepipeline:ndk_build_gifimage FAILED
Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.

Process 'command 'C:\android\android-ndk-r10d\ndk-build.cmd'' finished with non-zero exit value 2

Information:BUILD FAILED

Everyone,who solve it? share solution,thanks

@tyronen
Copy link
Contributor

tyronen commented Mar 31, 2015

Duplicate of issue #24

@tyronen tyronen closed this as completed Mar 31, 2015
@ruancaipu
Copy link

I have same problem.How to solve?

@lkw103037
Copy link

I fix it! check your dependencies, fresco use some three-part package like "nineoldandroids" I used "nineoldandroids" make this problem, delete it , it's work fine.

@ghost
Copy link

ghost commented Jun 27, 2016

I have the same problem
please help to solve it

@chenzhu005774
Copy link

I have the same problem
please help to solve it.thank very much

@chenzhu005774
Copy link

creact a empty.c or sourceSets.main {
jni.srcDirs = []
} have no use...........................

@ghost
Copy link

ghost commented Dec 20, 2016 via email

@impasoftware
Copy link

Error:Execution failed for task ':scanlibrary:ndkBuild'.

A problem occurred starting process 'command 'ndk-build.cmd''

@MM-Furkan
Copy link

I still having the same problem can any one plz hlp me out

@sachinrkeche
Copy link

I am having issue of ,
Error:Execution failed for task ':ReactAndroid:buildReactNdkLib'.

Process 'command 'D:\soft\android-ndk-r10e-windows-x86_64\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 2
I am working in Win 07 environment using r10e NDK.

@TheLostIn
Copy link

I have the same problem
Error:Execution failed for task ':app:sample:ndkBuild'.

Process 'command 'ndk-build.cmd'' finished with non-zero exit value 2
please please please help me

@oprisnik
Copy link
Contributor

Make sure that you have the NDK set up in your local.properties file: ndk.dir=/path/to/ndk/android-ndk-r15c or similar.

@buixuanthe2212
Copy link

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

@FitApps7
Copy link

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

I also solved by this!

@DreamAndLife
Copy link

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

OMG!,THANKS

@fjz97
Copy link

fjz97 commented Apr 1, 2019

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

thanks!

@kanglyh
Copy link

kanglyh commented May 24, 2019

我不知道这是否好。我去了

C:\ Users \用户开发\应用程序数据\本地\的Android \ SDK \ NDK束\ NDK-build.cmd

目录和ndk-build.cmd我按

右键单击>编辑并从以下位置更改cmd文件:

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

@echo off
对我有用

谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests