face-landmark-android icon indicating copy to clipboard operation
face-landmark-android copied to clipboard

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

Open newer-android opened this issue 6 years ago • 2 comments

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

newer-android avatar May 22 '18 02:05 newer-android

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

hkawii avatar Sep 27 '18 23:09 hkawii

I'm also facing this issue

bilal-swayamtechlab avatar Aug 31 '19 12:08 bilal-swayamtechlab