Windows 7 上的 Android NDK 环境变量 [英] Android NDK Environment Variables on Windows 7

查看:20
本文介绍了Windows 7 上的 Android NDK 环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试在 Eclipse 中启动和运行 NDK.我已经阅读了几篇教程,并找到了一篇对我来说似乎有意义的教程.但是,它说:

I am currently trying to get the NDK up and running in Eclipse. I have read several tutorials, and found one that seems to make sense to me. However, it says:

Please make sure that you have set the environment variables like
JAVA_HOME -- Java Home Directory
NDK_HOME -- Android NDK Home Directory
Update Path Variable with JDK Bin folder

我在环境变量"窗口中,但不知道该怎么做.我还没有 JAVA_HOME 变量,所以我需要创建它,但值是什么?NDK_HOME 也是如此.我确实有一个 PATH 变量,我之前在安装 Cygwin 时对其进行了编辑.

I am in my Environment Variables window, but am confused about what to do. I have no JAVA_HOME variable yet, so I need to create it, but with what value? The same goes with the NDK_HOME. I do have a PATH variable, which I edited earlier when I installed Cygwin.

顺便说一句,这是我正在使用的教程:http://www.windows7hacker.com/index.php/2010/05/how-to-addedit-environment-variables-in-windows-7/

By the way, this is the tutorial I am using: http://www.windows7hacker.com/index.php/2010/05/how-to-addedit-environment-variables-in-windows-7/

推荐答案

我能够使用 ARM 站点上的信息(http://ds.arm.com/ds-5-community-edition/).

I was able to generate an NDK development environment in Eclipse by using the information on the ARM site (http://ds.arm.com/ds-5-community-edition/).

使用 NDK 有一些注意事项.例如,如果您将其安装在嵌入了空格的路径中(例如 C:program files (x86)Android),您将遇到问题.

There are some caveats to using the NDK. For instance, if you installed it in a path that has spaces embedded (for example C:program files (x86)Android) you'll run into problems.

尝试在命令提示符下运行 ndk-build.cmd 命令,看看您的安装是否有任何问题.

Try to run the ndk-build.cmd command in a command prompt to see if you have any problems with your installation.

这篇关于Windows 7 上的 Android NDK 环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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