Process 'command 'sh'' finished with non-zero exit value

Hello,

Trying to run this demo on android
I have compiled TVM4J and installed that in local maven repo.
After that when I tried to run that on Android I am getting the below error,

FAILURE: Build failed with an exception.

    What went wrong:
    Execution failed for task ':app:buildJni'.

    Process 'command 'sh'' finished with non-zero exit value 127

Can anyone help me with this?

1 Like

Solve the problem, course I use android-studio to build the project, when I changed it to gradle in command line and fix some problems, it has been successed.

1 Like

Hi,

I am getting a similar error:

Task :app:buildJni FAILED
src/main/jni/build.sh: 25: src/main/jni/build.sh: ndk-build: not found

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:buildJni’.

Process ‘command ‘sh’’ finished with non-zero exit value 127

looks like it cannot detect NDK, I have installed NDK through SDK

I am using grade 5.4.1.

any help?

Thanks!

Hi, I’m working on TVM and i have same problems with you. I need to ask some questions about that. How can we communicate fast?

Hi, I am facing the same problem now, how do you solve this at last? Thanks.