如何到位更新Android NDK? [英] How to update Android NDK in place?

查看:264
本文介绍了如何到位更新Android NDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经下载Android NDK,因为新版本已发布到devloper网站上.

I used to download the Android NDK as new version were pubished to the devloper website.

看来Google最近更新了开发者网站,并删除了NDK的直接下载链接,并用一堆循环引用替换了它们,这些引用最终导致SDK的下载. SDK下载页面不包含NDK.我发现与下载和NDK最接近的是下载Android Studio和SDK工具.

It appears Google has recently updated the developer website and removed direct NDK download links, and replaced them with a a bunch of circular references that eventually lead to the SDK download. The SDK download page does not include the NDK. The closest I have found to a download and NDK is Download Android Studio and SDK Tools.

运行$ sudo /opt/android-sdk-macosx/tools/android不能提供更新NDK的方法.

Running $ sudo /opt/android-sdk-macosx/tools/android does not offer a way to update the NDK.

如何使用现有的NDK或SDK工具之一来就地更新NDK?

How do I update the NDK in place using the existing NDK or one of the SDK tools?

或者实际NDK的下载在哪里?

Or where is the download of the actual NDK located?

为清楚起见,我从命令行使用antndk-build.我不使用Eclipse或Android Studio. Eclipse并且Android插件已损坏;而且Android Studio并不真正支持NDK和JNI.

To be clear, I use ant and ndk-build from the command line. I don't use Eclipse or Android Studio. Eclipse and the Android plugin is broken; and Android Studio does not really support NDK and JNI.

另外,我真的不想学习其他编辑器,因为我有点了解Eclipse,而且我已经知道如何从命令行进行操作(因此不需要编辑器).

Plus, I don't really want to learn another editor since I kind of know Eclipse, and I know already how to do it from the command line (so there's no need for an editor).

推荐答案

  1. 在Android Studio中,转到Tools (top-menu item) > Android > SDK Manager
  2. 点击"SDK工具"标签
  3. 向下滚动,您将看到NDK作为一个选项,并详细说明是否有可用的更新

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

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