AndroidStudio/NDK - finished with non-zero exit value2
Android Studio 1.1.0 NDK = r10d OpenCV4Android 2.4.10
Can't run OpenCV4android Sample#2/mixed processing.
Information:BUILD FAILED Error:Execution failed for task ':openCVTutorial2MixedProcessing:compileDebugNdk'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\MYDATA\android-ndk-r10d\ndk-build.cmd'' finished with non-zero exit value 2
I've added the NDK directory. I've tried the extra empty c file. New to all this so I don't really understand what is going on. Found other threads that question this "exit value 2" error with no real answer.
I'm having the exact same issue as loleczek. Please HELP!
I've had the same problem, and I resolved it by addind this :
sourceSets {
main {
res.srcDirs = ['src/main/res']
jniLibs.srcDirs = ['src/main/jniLibs']
jni.srcDirs = [] // This prevents the auto generation of Android.mk
}
}
to my build.gradle (the one in app) in the android object. Maybe it will work for you ;)
hi i sign up on this site just for say thank you . u help me a lot thank you thank you thank you
@AIIXS I too signed up just to thank you. This is the only solution on the internet which fixed the problem! Thank you!
this solution did not work for me
i m having same issue and it is not resolve plz help me....???
Did anybody find a solution? I have currently the same problem :(