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

Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\lenovo\AppData\Local\Android\Sdk\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2 #4

Open
newer-android opened this issue May 22, 2018 · 2 comments

Comments

@newer-android
Copy link

无法成功运行,报的上面的错误,按照网上的方法修改了几次不起作用,帮忙看看是什么原因造成的

@hkawii
Copy link

hkawii commented Sep 27, 2018

I had that issue too and it is solved by deleting all ndk config lines in the gradle file and then adding that to defaultConfig

    externalNativeBuild {
        ndkBuild {
            targets "app"
            cppFlags "-std=c++11 -fexceptions"
            arguments "APP_STL=gnustl_shared"
            abiFilters "armeabi-v7a"
        }
    }

As Android Studio, 2.3.2 has integrated externalNativeBuild in android gradle plugin, so you don't need the tricks with custom gradle task.

Source here

@bilal-swayamtechlab
Copy link

I'm also facing this issue

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