Document-Scanner
Document-Scanner copied to clipboard
Unable to Debug in Android studio
I tried to run project in Android studio but it gives error saying - "CreateProcess error=2, The system cannot find the file specified"
** This Part is causing that error task ndkBuild(type: Exec, description: 'run ndk-build') { if (Os.isFamily(Os.FAMILY_WINDOWS)) { workingDir 'src/main/jni' commandLine 'ndk-build.cmd', '-j', Runtime.runtime.availableProcessors()
} else {
workingDir 'src/main/jni'
commandLine "$ndkDir/ndk-build", '-j', Runtime.runtime.availableProcessors()
}
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn(ndkBuild)
}
change the directory of the ndk and use def ndkDir = android.ndkDirectory above commandLine
@heetparkhiya can you please explain in detail with screenshot, having the same issue of ndk.