Windows 7 Pro 64位下的Android SDK设置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1919340/
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 03:48:02  来源:igfitidea点击:

Android SDK Setup under Windows 7 Pro 64 bit

androideclipse

提问by curtisk

The short version of my issue at hand,

我手头问题的简短版本,

  • Windows 7 Professional x64
  • Java JDK 1.6.0_17 x64
  • Eclipse Galileo w\ADT Plugin installed
  • Android SDKtools r04
  • Windows 7 专业版 x64
  • Java JDK 1.6.0_17 x64
  • 安装了 Eclipse Galileo w\ADT 插件
  • Android SDKtools r04

Since the Android SDK download now only includes the tools, you have to run the included SDK Manager application (SDK Setup) through which you can download the platforms, additional tools, docs,etc.

由于 Android SDK 下载现在仅包含工具,因此您必须运行包含的 SDK 管理器应用程序(SDK 设置),您可以通过该应用程序下载平台、其他工具、文档等。

Under my current configuration SDK Setup bombs on launch, so, I can't do anything since I do not have a single platform to start writing against...I've read a few places that the fix is "just install the 32 bit JDK and all will be well" that seems surprising and disappointing option for a work around(downloading it now to try).

在我当前的配置下,SDK 安装程序在启动时会出现炸弹,因此,我无能为力,因为我没有一个平台可以开始编写……我已经阅读了一些修复方法是“只需安装 32 位JDK 和一切都会好起来的”,这似乎是一个令人惊讶和令人失望的解决方法(立即下载以尝试)。

My question is this, anyone else run into this same issue and how did you get past it? Is there a place I can "download by hand" the components I need that I missed on the Android SDK site?

我的问题是,其他人遇到过同样的问题,你是如何解决的?有什么地方可以“手动下载”我在Android SDK 站点上遗漏的所需组件?

Odds are pretty good that the 32 bit "fix" will work, but that seems wrong that I'll have to install a secondary version of the same SDK/JRE just to run this tool and to download the actual Android SDK components

32 位“修复”可以工作的可能性非常大,但我必须安装相同 SDK/JRE 的辅助版本才能运行此工具并下载实际的 Android SDK 组件,这似乎是错误的

Thanks!

谢谢!

UPDATE:Well, the work around that requires you to also install 32 bit java and referencing that as your JAVA_HOME worked, either by calling the SDK setup manually or through eclipse. I'm not particularly happy with that, so I'll leave this one open for the time being in case there are other ways to get this done that people may know about.

更新:嗯,解决方法要求您还安装 32 位 java 并在您的 JAVA_HOME 工作时引用它,通过手动或通过 eclipse 调用 SDK 设置。我对此并不特别满意,因此我将暂时保留此方法,以防有其他人可能知道的其他方法来完成此任务。

UPDATE 2:Not directly related since it is Linux centric, but there are troubleshooting steps if trying to run the SDK/Eclipse under Linux 64bitwhere they reference the need to be able to run 32 bit, but nothing similar under windows x64

更新 2:不直接相关,因为它以 Linux 为中心,但如果尝试在 Linux 64 位下运行 SDK/Eclipse故障排除步骤,其中他们引用了能够运行 32 位的需要,但在 Windows x64 下没有类似的

FINAL UPDATE (?)Taking the info Seth's answer gave me, and running the bat manually(once I knew what file SDK Setup was running) the answer for me was simply adding ANDROID_SWT path variable that pointed to a valid location with the x86_64 swt.jar....the android sdk directory had one, seemingly in the right place, but it couldn't find it until I added that to my path.

最终更新 (?)获取 Seth 的答案给我的信息,并手动运行 bat(一旦我知道 SDK 安装程序正在运行什么文件),我的答案只是添加 ANDROID_SWT 路径变量,该变量指向具有 x86_64 swt 的有效位置。 jar ....android sdk 目录有一个,似乎在正确的位置,但直到我将它添加到我的路径中才能找到它。

Thanks All!

谢谢大家!

采纳答案by Seth

Found a solution that modifies the android.bat to allow you to start and run the android sdk and avd manager on the x64 jdk. So far I've been able to start it updating, but I don't know what other implications running the emulator and compiling against the x64 jdk will have.

找到修改android.bat的解决方案,让你在x64 jdk上启动和运行android sdk和avd管理器。到目前为止,我已经能够开始更新它,但我不知道运行模拟器和针对 x64 jdk 进行编译会有什么其他影响。

http://code.google.com/p/android/issues/detail?id=3917

http://code.google.com/p/android/issues/detail?id=3917

good luck.

祝你好运。

回答by Ryan Turcotte

When it says JDK not found, just press ‘back' button and then press again ‘next' button..

当它说找不到 JDK 时,只需按“后退”按钮,然后再次按“下一步”按钮。

I got this from the bottom of this post: http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/

我从这篇文章的底部得到了这个:http: //codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/

回答by Martin English

My situation:: Win 7 x64 JDK 1.6.23 (x64) running installer_r08-windows to install Android SDK failed to detect JDK

我的情况:: Win 7 x64 JDK 1.6.23 (x64) running installer_r08-windows to install Android SDK failed to detection JDK

Solution is in http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/

解决方案在http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/

回答by Martin English

You can just push back and push next again, and it installs OK.

您只需推回并再次推下,它就安装好了。

回答by Orakzai

just press the back button and then next button...jdk found :D

只需按后退按钮,然后按下一步按钮...找到 jdk :D

回答by Kazuko Ando

The following solution was implemented because recently our IDE stopped compiling and building [refresh or clean] on the standard Eclipse IDE for Java Developers version. We kept receiving the error "Your project contains error(s), please fix it before running it." We reviewed all errors, cleaned over and over, rebuilt and even created a new workspace and imported the files however nothing worked. Our product manager Johnpaul, found the error with in the compiled build path and even though it was a manual fix it would come back on the next refresh or rebuild so he recommended we back-up our work-space and do a complete re-install of the developers environment.

之所以实施以下解决方案是因为最近我们的 IDE 停止在 Java 开发人员的标准 Eclipse IDE 版本上编译和构建 [刷新或清理]。我们不断收到错误消息“您的项目包含错误,请在运行前修复它。” 我们检查了所有错误,一遍又一遍地清理,重建甚至创建了一个新的工作区并导入了文件,但没有任何效果。我们的产品经理 Johnpaul 在编译的构建路径中发现了错误,即使它是手动修复,它也会在下次刷新或重建时返回,因此他建议我们备份我们的工作空间并进行完整的重新安装开发者环境。

We made the switch as a recommendation we found from: http://knol.google.com/k/fred-grott/which-eclipse-package-for-android/166jfml0mowlh/18#report-comment-166jfml0mowlh.7wc65w

我们根据以下建议进行了转换:http: //knol.google.com/k/fred-grott/which-eclipse-package-for-android/166jfml0mowlh/18#report-comment-166jfml0mowlh.7wc65w

We now use the Eclipse IDE [Indigo]for Java and Report Developers Windows 64 Bit without a problem.

我们现在使用 Eclipse IDE [Indigo] for Java 和 Report Developers Windows 64 位没有问题。

After the IDE broke we downloaded:

IDE 损坏后,我们下载了:

  • Java Developer Environment with jdk-6u26-windows-x64
  • Eclipse Indigo IDE for Java and Report Developers Windows 64 Bit
  • Android SDK Tools installer_r13-windows
  • 使用 jdk-6u26-windows-x64 的 Java 开发人员环境
  • 适用于 Java 和报表开发人员的 Eclipse Indigo IDE Windows 64 位
  • Android SDK 工具 installer_r13-windows

We then:

然后我们:

  • Disconnected from the internet
  • Disabled all Anti-virus programs
  • Disabled our Firewalls
  • 与互联网断开连接
  • 禁用所有防病毒程序
  • 禁用我们的防火墙

Next we:

接下来我们:

  • Uninstalled our SDK via the Eclipse IDE line by line,
  • Updated [installed] our Java Developer Environment with jdk-6u26-windows-x64
  • Unpacked and over wrote Eclipse with the new Indigo "Eclipse IDE for Java and Report Developers"
  • 通过 Eclipse IDE 逐行卸载我们的 SDK,
  • 使用 jdk-6u26-windows-x64 更新 [安装] 我们的 Java 开发人员环境
  • 使用新的 Indigo“Eclipse IDE for Java and Report Developers”解压并重写 Eclipse

Windows 64 Bit

视窗 64 位

  • List item
  • Turned our anti-virus back on and connected to the internet
  • Reinstalled Android SDK Tools installer_r13-windows
  • 项目清单
  • 重新打开我们的防病毒软件并连接到互联网
  • 重新安装 Android SDK 工具 installer_r13-windows

We kept all of the default preferences and now everything is working perfectly again. Actually better as the rewrite also solved a few problems with our app not working on some devices. No idea as to why but we aren't complaining. Hope this helps as it is not a true install however a reinstall for Fall 2011 in a Windows 7 64 bit environment.

我们保留了所有默认首选项,现在一切都恢复正常了。实际上更好,因为重写还解决了我们的应用程序无法在某些设备上运行的一些问题。不知道为什么,但我们没有抱怨。希望这会有所帮助,因为它不是真正的安装,而是在 Windows 7 64 位环境中为 2011 年秋季重新安装。

回答by ralfoide

If SDK Setup.exe fails, please try to open a command-prompt and run "tools\android.bat" manually. That's all what SDK Setup does, however the current version has a bug in that it doesn't display errors that the batch might output:

如果 SDK Setup.exe 失败,请尝试打开命令提示符并手动运行“tools\android.bat”。这就是 SDK 安装程序所做的一切,但是当前版本有一个错误,即它不显示批处理可能输出的错误:

 > cd <your-sdk>\tools
 > android.bat

That way you may see a more useful error message.

这样您可能会看到更有用的错误消息。

You must have a java.exe on your %PATH%.

您的 %PATH% 上必须有 java.exe。

回答by Trevor Johns

To answer your question about downloading files by hand, you can extract the relevant URLs from the SDK Manager's repository manifest:

要回答有关手动下载文件的问题,您可以从 SDK Manager 的存储库清单中提取相关 URL:

https://dl-ssl.google.com/android/repository/repository.xml

https://dl-ssl.google.com/android/repository/repository.xml

回答by Jeremy

My problem was installing the Android SDK in Eclipse Helios on Windows 7 Enterprise 64bit, I was getting the following error:

我的问题是在 Windows 7 Enterprise 64bit 上的 Eclipse Helios 中安装 Android SDK,我收到以下错误:

Missing requirement: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) requires 'org.eclipse.jdt.junit 0.0.0' but it could not be found

缺少要求:Android 开发工具 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) 需要 'org.eclipse.jdt.junit 0.0.0' 但它找不到

Having followed the advice above to ensure that the JDK was in my PATH variable (it wasn't), installation went smoothly. I guess the error was somewhat spurious (incidentally if you're looking for the JARs that correspond to that class, they were in my profile rather than the Eclipse installation directory)

按照上面的建议确保 JDK 在我的 PATH 变量中(它不是),安装进行得很顺利。我猜这个错误有点虚假(顺便说一下,如果您正在寻找与该类对应的 JAR,它们在我的配置文件中而不是 Eclipse 安装目录中)

So, check that PATH variable!

所以,检查那个 PATH 变量!

回答by Franci Penov

You can enable the Android SDK installer to run on Windows x64 with JDK x64 installed, by exporting HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kitregistry key, adding Wow6432Nodeto all registry keys in the exported file and reimporting it back (should show in regedit as HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kitas well).

您可以通过导出HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit注册表项,添加Wow6432Node到导出文件中的所有注册表项并将其重新导入(也应显示在 regedit 中HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit),使 Android SDK 安装程序能够在安装了 JDK x64 的 Windows x64 上运行。

Note I have both x64 and x86 JRE installed. If you have only x64 JRE, you might have to export the whole HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoftregistry key and reimport it under Wow6432Node. Although, I believe that the Android SDK installer just checks the JDK registry key.

注意我同时安装了 x64 和 x86 JRE。如果您只有 x64 JRE,则可能需要导出整个HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft注册表项并在 Wow6432Node 下重新导入它。虽然,我相信 Android SDK 安装程序只是检查 JDK 注册表项。