ndk-build.cmd‘‘ finished with non-zero exit value 2

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ndk-build.cmd‘‘ finished with non-zero exit value 2相关的知识,希望对你有一定的参考价值。

  • 具体错误:
Execution failed for task ':libuvccamera:ndkBuild'.
> Process 'command 'D:\\SOFTWARES\\DEVELOP\\adt-bundle-windows-x86_64-20190307\\sdk\\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • 下载NDK

NDK版本问题。需要下载16b:

https://github.com/android/ndk/wiki/Unsupported-Downloads

  •  设置

以上是关于ndk-build.cmd‘‘ finished with non-zero exit value 2的主要内容,如果未能解决你的问题,请参考以下文章

错误:在 PATH 中找不到程序“/ndk-build.cmd”

MAC下eclipse build项目的时候提示无法运行ndk-build.cmd

Eclipse中NDK无法编译(哪怕是一个新建的空白项目)

安卓深入理解系统详解(35)

安卓深入理解系统详解(35)

NDKBuild 失败