简体   繁体   English

在 Jenkins 上安装 Android NDK

[英]Install Android NDK on Jenkins

I wanted to install the Android NDK on my Jenkins.我想在我的 Jenkins 上安装 Android NDK。 What I normally do to install components is execute the command我通常做的安装组件是执行命令

android list sdk --all

and

android update sdk -u -a -t <package number>

Unfortunately android list sdk --all is not showing the NDK , CMake and LLDB sdks that I need.不幸的是android list sdk --all没有显示我需要的NDKCMakeLLDB android list sdk --all

Why those sdks are not showing on the sdks list?为什么这些 sdk 没有显示在 sdks 列表中?

How can I install the NDK on my Jenkins?如何在我的 Jenkins 上安装 NDK?

Thanks for the help谢谢您的帮助

Instead of using the command line, you can simply download the NDK per your machine and unzip it to a directory wherever you like.您无需使用命令行,只需在您的机器上下载 NDK,然后将其解压缩到您喜欢的任何目录中。 NDK can be downloaded at: https://developer.android.com/ndk/downloads . NDK 可以在以下位置下载: https : //developer.android.com/ndk/downloads All the components, eg NDK, CMake and LLDB are shipped inside.所有的组件,例如 NDK、CMake 和 LLDB,都在里面装运。

Update: If you really want to go for command line approach, command sdkmanager (under directory: <your-path>/sdk/tools/bin ) is the way to go.更新:如果你真的想使用命令行方法,命令sdkmanager (在目录下: <your-path>/sdk/tools/bin )是要走的路。

Eg List installed and available packages例如列出已安装和可用的软件包

./sdkmanager --list

To install NDK directly use below.直接使用下面的方法安装 NDK。

./sdkmanager "ndk-bundle"
./sdkmanager "lldb;3.1"
./sdkmanager "cmake;3.6.4111459"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM