Document-Scanner icon indicating copy to clipboard operation
Document-Scanner copied to clipboard

Unable to Debug in Android studio

Open ziglibigliboo opened this issue 4 years ago • 3 comments

I tried to run project in Android studio but it gives error saying - "CreateProcess error=2, The system cannot find the file specified"

ziglibigliboo avatar Jul 17 '20 06:07 ziglibigliboo

** 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)
}

heetparkhiya avatar Jul 20 '20 11:07 heetparkhiya

change the directory of the ndk and use def ndkDir = android.ndkDirectory above commandLine

heetparkhiya avatar Jul 20 '20 11:07 heetparkhiya

@heetparkhiya can you please explain in detail with screenshot, having the same issue of ndk.

develoboi avatar Oct 26 '20 05:10 develoboi