NDK not configured、

来源:互联网 发布:山东网络教育 编辑:程序博客网 时间:2024/06/14 21:04

NDK程序是coworker写的,我在SVN更新下来,但是之前没有配置过NDK吗,更新完代码之后可能会间歇出现以下的错误:


Error:Execution failed for task ':app: xxxNdk'.
> NDK not configured.
Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties.
(On Windows, make sure you escape backslashes, e.g. C:\\ndk rather than C:\ndk)

Error:Execution failed for task ':app:xxxNdk'.
> A problem occurred starting process 'command 'D:\Users\chinaso\AppData\Local\Android\ndk\ndk-build.cmd''


解决方法:显然就是没有配置NDK的环境,但是链接 http://developer.android.com/tools/sdk/ndk/ 并没有什么用

资源下载:http://pan.baidu.com/s/1c0OmAqs

将资源下载,是exe文件,双击即解压,记住解压的文件夹,然后在local.properties中的sdk路径下面,仿照,添加NDK的路径

ok了,解决了问题。


关于是否需要配置windows环境变量,我没有配置,在cmd中使用ndk-build也是提示不是内部命令,只要是程序可以运行了,我也就没有care

1 0
原创粉丝点击