fresco icon indicating copy to clipboard operation
fresco copied to clipboard

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

Open BaronZ opened this issue 11 years ago • 24 comments

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 avatar Mar 31 '15 03:03 BaronZ

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

BaronZ avatar Mar 31 '15 03:03 BaronZ

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

BaronZ avatar Mar 31 '15 04:03 BaronZ

@BaronZ did you solve it?

hyvenzhu avatar Mar 31 '15 06:03 hyvenzhu

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

wenjianxue avatar Mar 31 '15 06:03 wenjianxue

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

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

wanglg avatar Mar 31 '15 09:03 wanglg

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

xuwt avatar Mar 31 '15 09:03 xuwt

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

arlong avatar Mar 31 '15 10:03 arlong

Duplicate of issue #24

tyronen avatar Mar 31 '15 12:03 tyronen

I have same problem.How to solve?

ruancaipu avatar Apr 14 '15 08:04 ruancaipu

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.

lkw103037 avatar Apr 30 '15 03:04 lkw103037

I have the same problem please help to solve it

ghost avatar Jun 27 '16 06:06 ghost

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

chenzhu005774 avatar Dec 20 '16 00:12 chenzhu005774

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

chenzhu005774 avatar Dec 20 '16 00:12 chenzhu005774

send ur email id

Thanks & Regards,

Rakesh kushwaha (Android Developer) 8510069810

On Tue, Dec 20, 2016 at 6:27 AM, chenzhu005774 [email protected] wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebook/fresco/issues/47#issuecomment-268123235, or mute the thread https://github.com/notifications/unsubscribe-auth/ATMgpYTvxr-yOHWpHGmuVWj51nH1m3rqks5rJyfzgaJpZM4D3gcE .

ghost avatar Dec 20 '16 04:12 ghost

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

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

impasoftware avatar Apr 03 '17 04:04 impasoftware

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

MM-Furkan avatar Aug 28 '17 15:08 MM-Furkan

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.

sachinrkeche avatar Nov 30 '17 12:11 sachinrkeche

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

TheLostIn avatar May 23 '18 14:05 TheLostIn

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

oprisnik avatar May 23 '18 15:05 oprisnik

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

buixuanthe2212 avatar Nov 09 '18 07:11 buixuanthe2212