Eclipse的错误:无效的路径NDK? [英] Eclipse error: invalid path for ndk?

查看:315
本文介绍了Eclipse的错误:无效的路径NDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想整合一些C code与Android这样的第一步我必须指定本机开发节点NDK路径。但是,当我指定NDK路径它给了错误的无效的路径NDK 我用Google搜索,但没有找到一些解决办法。我失去了一些步骤。

I want to integrate some c code with Android so as first step I has to specify NDK path in Native Development node. But when I specify NDK path it gives error Invalid path for NDK I googled but could not find some solution. Am I missing some step.

SDK NDK 是在同一文件夹和SDK路径工作正常。

SDK and NDK are in the same folder and SDK path working fine.

请帮忙

我已经安装了

  • 请-3.81
  • NAWK - 2007年10月23日 - 设置
  • 在Cygwin的
  • ADT-17.0.0
  • 在塞阔亚
  • android-ndk-r7b-windows.zip(摘要)
  • make-3.81
  • nawk-2007.10.23-setup
  • Cygwin
  • ADT-17.0.0
  • Sequoyah
  • android-ndk-r7b-windows.zip (Extracted)

编辑:

我只是检查该链接,才知道,这可能是GCC不存在问题。如何做我检查,如果它的海湾合作​​委员会的问题或没有,或如何,如果GCC安装或我查不?

I just check the link and came to know that it could be GCC absent problem .How do I check that if its GCC problem or not , or How can I check if GCC is installed or not?

推荐答案

嗯...奇怪的错误。请记住,为了使用NDK,该SDK应以完美的方式工作,你开始使用NDK前,说,我建议你尝试以下方法:

Mmm... weird error. Keep in mind that in order to use the NDK, the SDK should be working in perfect way before you start with the NDK, said that, I suggest you to try the following:

1 - 请确保您有pre-先决条件:

1- Be sure you have the pre-requisites:

  • 对于所有的开发平台,GNU使3.81或更高版本。 早期版本的GNU make可能的工作,但尚未经过测试。
  • 在最新版本的awk(无论是GNU awk的或NAWK)也是必需的。
  • 对于Windows,Cygwin的1.7或更高。 NDK的将无法正常工作 与Cygwin的1.5安装。
  • For all development platforms, GNU Make 3.81 or later is required. Earlier versions of GNU Make might work but have not been tested.
  • A recent version of awk (either GNU Awk or Nawk) is also required.
  • For Windows, Cygwin 1.7 or higher is required. The NDK will not work with Cygwin 1.5 installations.

2 - 从头删除任何NDK引用,如在Eclipse中设置启动,路径,文件夹,拉链等。

2- Start from scratch again by deleting any NDK references such as the settings on eclipse, paths, folders, zips, etc.

3要确保已经更新到了最新的Andr​​oid SDK和ADT工具。使用帮助 - >检查更新菜单在Eclipse,然后确保你把所有的东西都是最新的Andr​​oid SDK的经理。

3- Be sure you have updated to the latest Android SDK and ADT Tools. Using the Help->Check for Updates Menu in ECLIPSE and then be sure you have all the things are up to date on the Android SDK Manager.

4-我看到一个D:/关于你的问题,所以你使用的是Windows PC ...它必须是Windows XP(32位)或Vista(32位或64位)。一定要得到的Windows版本(http://dl.google.com/android/ndk/android-ndk-r7b-windows.zip),而当你解压缩的NDK,重命名文件夹NDK。你可以把它放在旁边,你的SDK的文件夹,它不应该的问题。

4- I see a "D:/" on your question, so you're using a Windows PC... it must be a Windows XP (32-bit) or Vista (32- or 64-bit). Be sure to get the Windows version (http://dl.google.com/android/ndk/android-ndk-r7b-windows.zip), and when you have unzipped that ndk, rename the folder to "ndk". You can put it next to where your SDK's folder is, it should not matter.

5打开Eclipse,并把它的路径NDK,看看会发生什么。

5- Open Eclipse, and give it the path to the NDK, and see what happens.

祝你好运!

这篇关于Eclipse的错误:无效的路径NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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