【问题标题】:Eclipse NDK Path setting on UbuntuUbuntu 上的 Eclipse NDK 路径设置
【发布时间】:2014-01-21 22:16:25
【问题描述】:

我尝试在 Eclipse 上使用 ndk 构建 Android 应用程序,但控制台显示未找到 ndk-build。我使用 Ubuntu 并且已经设置了 PATH 变量。

我以这种方式设置我的 PATH 变量。

export ANDROID_NDK_ROOT=<path/to/ndkexport
PATH=$PATH:$ANDROID_NDK_ROOT

当我输入“which ndk-build”时,我可以看到 ndk 目录路径。谁能告诉我怎么了?

【问题讨论】:

    标签: android eclipse ubuntu android-ndk


    【解决方案1】:

    在 Eclipse 中,右键单击您的项目,选择 Properties->Environment->Add,将变量名设置为 PATH,在终端中输入“echo $PATH”,将变量值设置为结果加上您的 ndk 目录。然后就可以了。

    【讨论】:

      猜你喜欢
      • 2014-09-09
      • 2016-11-02
      • 2012-08-03
      • 1970-01-01
      • 1970-01-01
      • 2013-11-05
      • 1970-01-01
      • 1970-01-01
      • 2015-03-14
      相关资源
      最近更新 更多