Skip to content Skip to sidebar Skip to footer

How To Fix Error:(158) Android Ndk: Aborting. .stop. (ndk-build.cmd'' Finished With Non-zero Exit Value 2)

I want to develop an android application about Auto crop in a scanned image or photo by using OpenCV. I found an open source application name 'android-opencv-scan-doc' on github. A

Solution 1:

Just remove the white space from the project path and try to use new NDK (android-ndk-r10e-windows-x86_64) it works fine for me

Solution 2:

First, make sure you have the ndk path setup in Project Structure dialog.

If this is not the issue, try to debug ndkClean task, as this is the one failing the build. You can make a more informative gradle build log by adding --stacktrace --debug in the Command-line Options text box on the compiler section in the Settings dialog, or try to go over the lines in this task and find the problematic one.

Solution 3:

I check lots off task but nothing working. and I already have NDK install for other project. but after changing project location solve my issue. if you face issue will be try this.

Post a Comment for "How To Fix Error:(158) Android Ndk: Aborting. .stop. (ndk-build.cmd'' Finished With Non-zero Exit Value 2)"