简体   繁体   English

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

[英]Eclipse Juno ADT plugin NDK path removed?

I can't find the option to set the NDK path on Eclipse Juno with the ADT plugin. 我找不到使用ADT插件在Eclipse Juno上设置NDK路径的选项。 (I downloaded yesterday the ADT Bundle from the Android site). (我昨天从Android网站下载了ADT捆绑包)。

Everyone says I should find it under Windows -> Preferences -> Android -> NDK but the option NDK under Android simply does not exists. 每个人都说我应该在Windows-> Preferences-> Android-> NDK下找到它,但是Android下的NDK选项根本不存在。 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. 无论如何,我似乎找不到在Eclipse中更改NDK路径的方法。

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

I'm feeling like I'm missing something really obvious here... 我感觉好像在这里想念的东西很明显...

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" 检查并安装“开发人员工具”

you need re-install the ADT-23.0.4.zip (Don't forget select the Android Native Development Tools); 您需要重新安装ADT-23.0.4.zip (不要忘记选择Android Native Development Tools);
Please have a look at this Android SDK page . 请查看此Android SDK页面

You should: 你应该:

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

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.jar from the older ADT installation I had, which showed the NDK option from the \\eclipse\\plugins folder. 从我以前安装的ADT中获取了文件com.android.ide.eclipse.ndk_22.3.0.v201310242005-887826.jar ,该文件显示了\\eclipse\\plugins文件夹中的NDK选项。

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

  3. Pasted it in adt-bundle-windows-x86_64-20140702\\eclipse\\plugins 将其粘贴到adt-bundle-windows-x86_64-20140702\\eclipse\\plugins

  4. Restarted Eclipse. 重新启动Eclipse。

  5. Hi NDK! 嗨,NDK!

I hope this won't cause any problems in the future! 希望以后不会造成任何问题!

After: 后:

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

The Preferences->Android->NDK setting appeared and I was able to set the NDK path. 出现了Preferences-> Android-> NDK设置,我能够设置NDK路径。

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

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插件时遇到了这个问题-事实证明,尽管在Eclipse Luna中安装了CDT和Android Native Developer Tools插件,但它们都无法正常工作。

The cause was that I was using the Apple Java 1.6 (which is Java 6), and Luna "requires" a Java 7 VM. 原因是我使用的是Apple Java 1.6(即Java 6),而Luna“需要”一个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: 为了解决这个问题,我安装了来自Oracle的最新JDK,然后更新了Eclipse.app捆绑包中的Eclipse.ini文件,添加了以下两行:

-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时,正确地使用了Eclipse -> Preferences...列出了一些以前没有的C ++设置,并且Android部分有一个NDK条目,允许指定路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM