Android Eclipse Juno ADT 插件 NDK 路径已删除?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24723712/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:39:04  来源:igfitidea点击:

Eclipse Juno ADT plugin NDK path removed?

androideclipseandroid-ndkadt

提问by UnTraDe

I can't find the option to set the NDK path on Eclipse Juno with the ADT plugin. (I downloaded yesterday the ADT Bundle from the Android site).

我找不到使用 ADT 插件在 Eclipse Juno 上设置 NDK 路径的选项。(我昨天从 Android 站点下载了 ADT Bundle)。

Everyone says I should find it under Windows -> Preferences -> Android -> NDK but the option NDK under Android simply does not exists. Maybe they changed it's location in the recent version? Anyway I can't seem to find a way to change the NDK path in my Eclipse.

每个人都说我应该在 Windows -> Preferences -> Android -> NDK 下找到它,但 Android 下的 NDK 选项根本不存在。也许他们在最近的版本中改变了它的位置?无论如何,我似乎找不到在 Eclipse 中更改 NDK 路径的方法。

Picture: enter image description here

图片: 在此处输入图片说明

I'm feeling like I'm missing something really obvious here...

我觉得我在这里遗漏了一些非常明显的东西......

采纳答案by user1667823

you need re-install the ADT-23.0.4.zip(Don't forget select the Android Native Development Tools);
Please have a look at this Android SDK page.

您需要重新安装ADT-23.0.4.zip(不要忘记选择Android Native Development Tools);
请查看此 Android SDK 页面

You should:

你应该:

  1. Download ADT-23.0.4.zip.
  2. Just re-install.
  3. Restart.
  4. You will see Eclipse > Window > Android > NDK tag.
  1. 下载 ADT-23.0.4.zip。
  2. 重新安装就好了
  3. 重新开始。
  4. 您将看到 Eclipse > Window > Android > NDK 标签。

回答by tryer3000

Fix this problem by install 'Developer Tools'

通过安装“开发者工具”来解决这个问题

From Eclipse -> Help -> Install New Software... ->

从 Eclipse -> 帮助 -> 安装新软件... ->

select: "Android Developer Tools Update Site - https://dl.google.com/android/eclipse/"

选择:“Android 开发者工具更新站点 - https://dl.google.com/android/eclipse/

uncheck "Contact all update sites during install to find required software" option

取消选中“在安装过程中联系所有更新站点以查找所需软件”选项

check and install "Developer Tools"

检查并安装“开发者工具”

回答by diszonant

I faced the same problem. It was annoying to waste those few hours, but I guess I figured it out. What I did was,

我遇到了同样的问题。浪费那几个小时很烦人,但我想我明白了。我所做的是,

  1. Grabbed the file com.android.ide.eclipse.ndk_22.3.0.v201310242005-887826.jarfrom the older ADT installation I had, which showed the NDK option from the \eclipse\pluginsfolder.

  2. Renamed it to com.android.ide.eclipse.ndk_23.0.2.1259578.jar.

  3. Pasted it in adt-bundle-windows-x86_64-20140702\eclipse\plugins

  4. Restarted Eclipse.

  5. Hi NDK!

  1. com.android.ide.eclipse.ndk_22.3.0.v201310242005-887826.jar从我拥有的旧 ADT 安装中获取文件,其中显示了\eclipse\plugins文件夹中的 NDK 选项。

  2. 将其重命名为com.android.ide.eclipse.ndk_23.0.2.1259578.jar.

  3. 粘贴进去 adt-bundle-windows-x86_64-20140702\eclipse\plugins

  4. 重新启动 Eclipse。

  5. 嗨,NDK!

I hope this won't cause any problems in the future!

我希望这不会在未来造成任何问题!

回答by Terry Walker

After:

后:

  1. Closing Eclipse Luna Service Release 1a (4.4.1) for Mac OS X.
  2. Installing Oracle Java JDK 1.7 (JDK 7u75) (jdk-7u75-macosx-x64.dmg)
  3. Modifying Eclipse.ini to add the two lines (right before -vmargs): -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java
  4. Restarting Eclipse.
  5. Going to Preferences->Java->Installed JREs, clicking "Search", and selecting Java SE 7 (1.7.0_75) as the default JRE
  6. Restarting Eclipse
  1. 关闭适用于 Mac OS X 的 Eclipse Luna Service Release 1a (4.4.1)。
  2. 安装 Oracle Java JDK 1.7 (JDK 7u75) (jdk-7u75-macosx-x64.dmg)
  3. 修改 Eclipse.ini 以添加两行(就在 -vmargs 之前): -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java
  4. 重新启动 Eclipse。
  5. 转到 Preferences->Java->Installed JREs,单击“Search”,然后选择 Java SE 7 (1.7.0_75) 作为默认 JRE
  6. 重启 Eclipse

The Preferences->Android->NDK setting appeared and I was able to set the NDK path.

首选项->Android->NDK 设置出现,我能够设置 NDK 路径。

回答by Gabo

I had the same issue, i dont know why, but the problems is with the Eclipse/Juno version, so i download in the eclipse page the Kepler versión and install the pluggin of adt, And all works just fine.

我遇到了同样的问题,我不知道为什么,但问题出在 Eclipse/Juno 版本上,所以我在 Eclipse 页面中下载了 Kepler 版本并安装了 adt 插件,并且一切正常。

回答by tangobravo

I had this issue with the latest Eclipse Luna and the ADT plugin - it turned out despite both the CDT and Android Native Developer Tools plugins being installed in Eclipse Luna they were not working.

我在最新的 Eclipse Luna 和 ADT 插件上遇到了这个问题 - 尽管 CDT 和 Android Native Developer Tools 插件都安装在 Eclipse Luna 中,但它们仍然无法正常工作。

The cause was that I was using the Apple Java 1.6 (which is Java 6), and Luna "requires" a Java 7 VM. No warnings were provided though! To solve it I installed the latest JDK from Oracle, and then updated the Eclipse.ini file inside the Eclipse.app bundle, adding the 2 lines:

原因是我使用的是 Apple Java 1.6(即 Java 6),而 Luna“需要”Java 7 VM。虽然没有提供警告!为了解决这个问题,我从 Oracle 安装了最新的 JDK,然后更新了 Eclipse.app 包中的 Eclipse.ini 文件,添加了 2 行:

-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java

just before the line that is -vmargs.

就在-vmargs.

Then when I restarted Eclipse, the CDT was correctly being used Eclipse -> Preferences...listed some C++ settings that were not previously there, and the Android section had an NDK entry the allowed to specify the path.

然后当我重新启动 Eclipse 时,CDT 被正确使用,Eclipse -> Preferences...列出了一些以前没有的 C++ 设置,Android 部分有一个 NDK 条目,允许指定路径。