NDK为AndroidStudio [英] NDK for AndroidStudio

查看:172
本文介绍了NDK为AndroidStudio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照此页面来研究NDK androidStudio下设置。

I follow this page to study "NDK setting under androidStudio".

<一个href=\"http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/\">http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/

但我面对的一个问题,当我与配置NDK gradle.here是错误消息。
已经有人帮我吗?

But I face an issue when I Config ndk with gradle.here is error message. have anybody help me?

错误:(20,0)摇篮DSL方法未找到:'NDK()
可能的原因:

  • 该项目我的申请'可使用版本摇篮的不包含的方法。
    打开包装摇篮文件
  • 构建文件可能丢失一个摇篮插件。
    应用摇篮插件
  • Error:(20, 0) Gradle DSL method not found: 'ndk()' Possible causes:

  • The project 'My Application' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file
  • The build file may be missing a Gradle plugin. Apply Gradle plugin
  • 推荐答案

    我有这个问题,并按照此博客的步骤解决它:
    http://ph0b.com/new-android-studio-ndk-support/

    I had this problem and solved it by following the steps in this blog: http://ph0b.com/new-android-studio-ndk-support/

    看着这个项目的源代码code:
    https://github.com/googlesamples/android-ndk/tree/master / HELLO-JNI

    and looking at the source code of this project: https://github.com/googlesamples/android-ndk/tree/master/hello-jni

    我希望帮助。

    这篇关于NDK为AndroidStudio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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