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

FAILURE: Build failed with an exception. #64

Closed
treeseedm opened this issue Apr 1, 2015 · 10 comments
Closed

FAILURE: Build failed with an exception. #64

treeseedm opened this issue Apr 1, 2015 · 10 comments

Comments

@treeseedm
Copy link

  • What went wrong:
    Execution failed for task ':imagepipeline:ndk_build_gifimage'.

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

@blackiedm
Copy link

@treeseedm you can see #5

@treeseedm
Copy link
Author

task "ndk_build_$name"(type: Exec) {
inputs.file("src/main/jni/$name")
outputs.dir("$buildDir/$name")
commandLine 'c:/Users/ma/Downloads/android-ndk-r10d/ndk-build',
'NDK_APPLICATION_MK=../Application.mk',
'NDK_OUT=' + temporaryDir,
"NDK_LIBS_OUT=$buildDir/$name",
'-C', file("src/main/jni/$name").absolutePath,
'--jobs', '8'
}

task "ndk_clean_$name"(type: Exec) {
    commandLine 'c:/Users/mahaifeng/Downloads/android-ndk-r10d/ndk-build',
        'NDK_APPLICATION_MK=../Application.mk',
        'NDK_OUT=' + temporaryDir,
        "NDK_LIBS_OUT=$buildDir/$name",
        '-C', file("src/main/jni/$name").absolutePath,
        'clean'
}

I config my envirment path "C:\Users\ma\Downloads\android-ndk-r10d;",

bug i get error message

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':imagepipeline:ndk_build_gifimage'.

    A problem occurred starting process 'command 'c:/Users/mahaifeng/Downloads/android-ndk-r10d/ndk-build''

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

@blackiedm
Copy link

in the task "ndk_build_$name", also have commandLine 'ndk-build', you try to replace your local ndk path.

@treeseedm
Copy link
Author

task "ndk_build_$name"(type: Exec) {
inputs.file("src/main/jni/$name")
outputs.dir("$buildDir/$name")
commandLine 'c:/Users/ma/Downloads/android-ndk-r10d/ndk-build',
'NDK_APPLICATION_MK=../Application.mk',
'NDK_OUT=' + temporaryDir,
"NDK_LIBS_OUT=$buildDir/$name",
'-C', file("src/main/jni/$name").absolutePath,
'--jobs', '8'
}

above,I have replace my local ndk path

@blackiedm
Copy link

so it is seem to be work in ubuntu or mac os, may be you can discuss it in #24

@treeseedm
Copy link
Author

@blackiedm Thank you!

@michalgr
Copy link
Contributor

michalgr commented Apr 1, 2015

Yes, we are aware of the fact that Fresco does not build on windows. I am trying to fix this. Closing this issue, lets follow up in #24

@michalgr michalgr closed this as completed Apr 1, 2015
@Flywhiter
Copy link

i fix Execution failed for task ':imagepipeline:ndk_build_gifimage'
but:
Error:Execution failed for task ':imagepipeline:ndk_clean_gifimage'.

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

@Flywhiter
Copy link

if i delet ndk_clean_gifimage
come this:
Error:Execution failed for task ':imagepipeline:downloadFiles'.

If multiple sources are provided the destination has to be a directory.

@gdky005
Copy link

gdky005 commented May 7, 2015

大家可以在 imagepipeline 子项目里面的 gradle.properties 文件中得最后添加

ndk.path=/Users/XXX/Android_SDK/android-ndk-r10d

(PS:/Users/XXX/Android_SDK/android-ndk-r10d是你系统里面的NDK路径)
就可以了,不需要在 build.gradle 里面写,方便以后的修改。

我发现在Android Studio 的 1.0.1 版本上可以, 在最新的1.2里面不可以,可能和 编译器有关吧。

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

No branches or pull requests

5 participants