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

Unable to Debug in Android studio #11

Open
ziglibigliboo opened this issue Jul 17, 2020 · 3 comments
Open

Unable to Debug in Android studio #11

ziglibigliboo opened this issue Jul 17, 2020 · 3 comments

Comments

@ziglibigliboo
Copy link

ziglibigliboo commented Jul 17, 2020

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

@heetparkhiya
Copy link

** 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
Copy link

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

@develoboi
Copy link

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

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

3 participants