执行失败的任务“:应用程序:compileDebugNdk” [英] Execution failed for task ':app:compileDebugNdk'

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

问题描述

我使用的是最新的Andr​​oid工作室打造1.1,因为我想要导入,需要NDK Eclipse项目。我安装NDK和 local.properties 。问题是,当我尝试运行该项目将显示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:\Users\vishal\android-ndk-r10d\ndk-build.cmd'' finished with non-zero exit value 2

任何解决方案?

any solution?

推荐答案

尝试添加这样的 build.gradle 文件:

sourceSets.main {
   jni.srcDirs = []
}

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

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