Windows os How to build?
My Environment
- os : WIndows 7 Ultimake
- SET ANDROID_HOME=C:\android-sdk-windows
- SET PATH=C:\android-ndk-r10d;%PATH%
Run
- gradlew build
Result
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':imagepipeline:ndk_build_gifimage'.
A problem occurred starting process 'command 'ndk-build''
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
....... ㅜ.ㅡ
Retry
- gradlew build -- stacktrace
Result
* What went wrong: Execution failed for task ':imagepipeline:ndk_build_gifimage'.
A problem occurred starting process 'command 'ndk-build''
* Try: Run with --info or --debug option to get more log output.
* Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':imagepipeline:ndk_build_gifimage'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) ...
I have same problem ,Did you solved it ?
#5 maybe resolve this, but i failed in windows.
I have same problem ,Did you solved it ?
Thanks for reporting!
Could you check if replacing "ndk-build" with "C:\android-ndk-r10d\ndk-build.cmd" in imagepipeline/build.gradle resolves the issue ?
If no, can you cd to imagepipeline directory and see if there is anything suspicious in the output of following command: C:\android-ndk-r10d\ndk-build.cmd NDK_APPLICATION_MK=../Application.mk NDK_OUT=build NDK_LIBS_OUT=build -C src/main/jni/gifimage There are couple of hardcoded "/" in the build script, I wonder if replacing them with "" solves the issue.
Also, the Android NDK on Windows requires that Cygwin 1.7 or later be installed. When using the Cygwin installer, make sure that the 'devel' tree is installed - by default, it isn't.
:imagepipeline:ndk_build_gifimage FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':imagepipeline:ndk_build_gifimage'.
A problem occurred starting process 'command 'D:/Android/software/android-ndk- r5b/ndk-build''
This error also accured when I build it, so did anyone have solved it?
- Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':imagepi peline:ndk_build_gifimage'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex ecuteActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex ecute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec uter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec ute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut e(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu ter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter .execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut e(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter .execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur e(AbstractTask.java:305) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.executeTask(AbstractTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.processTask(AbstractTaskPlanExecutor.java:63) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.run(AbstractTaskPlanExecutor.java:51) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul tTaskPlanExecutor.java:23) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau ltTaskGraphExecuter.java:88) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask ExecutionAction.java:29) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:62) at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec uter.java:23) at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu ter.java:68) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx ecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:62) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:55) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default GradleLauncher.java:149) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle Launcher.java:106) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun cher.java:86) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon troller.run(InProcessBuildActionExecuter.java:80) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav a:33) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav a:24) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:36) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:26) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51) at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav a:171) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction. execute(CommandLineActionFactory.java:237) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction. execute(CommandLineActionFactory.java:210) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti meValidationAction.java:35) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti meValidationAction.java:24) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute( CommandLineActionFactory.java:206) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute( CommandLineActionFactory.java:169) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep ortingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep ortingAction.java:22) at org.gradle.launcher.Main.doAction(Main.java:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots trap.java:54) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j ava:35) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja va:33) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48) Caused by: org.gradle.process.internal.ExecException: A problem occurred startin g process 'command 'ndk-build'' at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(Default ExecHandle.java:196) at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandl e.java:325) at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.jav a:83) at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecut orImpl$1.run(DefaultExecutorFactory.java:64) Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'ndk-bui ld' at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(Def aultProcessLauncher.java:27) at net.rubygrapefruit.platform.internal.WindowsProcessLauncher.start(Win dowsProcessLauncher.java:22) at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(Wra pperProcessLauncher.java:36) at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.jav a:65) ... 1 more Caused by: java.io.IOException: Cannot run program "ndk-build" (in directory "D: \Android\源码相关\fresco\imagepipeline"): CreateProcess error=2, ????????? at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(Def aultProcessLauncher.java:25) ... 4 more Caused by: java.io.IOException: CreateProcess error=2, ????????? ... 5 more
It is the whole stacktrace, please help me
anybody solved this problem?
I have same problem: Error:Execution failed for task ':imagepipeline:ndk_build_gifimage'.
A problem occurred starting process 'command 'ndk-build''
anybody solved this problem?
The ndk-build command is supposed to get NDK_PROJECT_PATH from the NDK_APPLICATION_MK passed in on the command line, but for some reason this does not seem to work on Windows.
got it
@lgengsy How to solve?
I have same problem.how to solve.....!
Is already solve?
Hi, note for everybody:
We understand people are frustrated that there are multiple issues with the Windows build. We take responsibility for it - as you might have guessed, our team develops on Mac OS and Linux and missed Windows. We are committed to making it work on all three.
Our office is closed for the Easter weekend right now but we will be back on Tuesday and will fix this as soon as we can.
Stay tuned, I think @michalgr got windows build working. We'll update gradle files and provide how-to instructions on Tuesday.
For those who would like to build the project before the official update on Tuesday, here is a quick fix that works for me :
https://github.com/tbarthel-fr/fresco/commit/c1ba14ba855037497e89ccd11816c4f365af265e
It relies on com.android.library to find ndk-dir, so be sure that ndk.dir='my-ndk-path' is set in fresco/local.properties.
Happy Easter =)
@tbarthel-fr thanks , it's work
@tbarthel-fr Confirmed, it works :)