任务“:app:compileDebugNdk"执行失败 [英] Execution failed for task ':app:compileDebugNdk'

查看:29
本文介绍了任务“:app:compileDebugNdk"执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用最新的 android studio build 1.1,因为我想导入一个需要 NDK 的 Eclipse 项目.我安装了 NDK 并在 local.properties 中设置了 NDK 位置.问题是当我尝试运行项目时,会显示 2 个错误,它们是

I'm using the latest android studio build 1.1 ,since i want to import an eclipse project that needs NDK .i installed NDK and set the NDK location in the local.properties.The problem is when i try to run the project 2 errors are displayed they are

1) Error:(199) *** Android NDK: Aborting...    .  Stop.
2)Error:Execution failed for task ':app:compileDebugNdk'.
> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException: Process 'command 'C:Usersvishalandroid-ndk-r10d
dk-build.cmd'' finished with non-zero exit value 2

有什么办法吗?

推荐答案

尝试将这个添加到 build.gradle 文件中:

Try adding this to the build.gradle file:

sourceSets.main {
   jni.srcDirs = []
}

这篇关于任务“:app:compileDebugNdk"执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆