Android NDK Environment Variables on Windows 7

纵然是瞬间 提交于 2020-01-20 08:18:10

问题


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

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.

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/


回答1:


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/).

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.

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



来源:https://stackoverflow.com/questions/11211600/android-ndk-environment-variables-on-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!