有没有人成功地在 64 位 Windows 7 上使用 64 位 Eclipse for Android 2.3 dev? [英] Has anyone been successful in using 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7?

查看:14
本文介绍了有没有人成功地在 64 位 Windows 7 上使用 64 位 Eclipse for Android 2.3 dev?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人成功地在 64 位 Windows 7 上使用 64 位 Eclipse for Android 2.3 dev?

请积极回答仅当,当您通过 Eclipse 的运行 (Ctrl+F11) 调用模拟器时,您的待调试应用程序的 APK 会自动安装到Android 模拟器您正在运行完全相同的配置:

  1. Windows 7 Ultimate 64 位.
  2. JDK 64 位(安装了 jdk-6u23-windows-x64.exe.)
  3. JDK 32 位(安装了 jdk-6u23-windows-i586.exe.)
  4. Eclipse Classic 3.6 64 位 (eclipse-SDK-3.6.1-win32-x86_64.zip)
  5. Android 2.3 SDK 入门包

如果您能够完全在 64 位 Windows 7 上使用 64 位 Eclipse for Android 2.3 dev,请描述您为实现这一目标而执行的步骤.

截至目前,以下步骤对我不起作用:

  1. 安装 64 位 JDK
  2. 安装 32 位 JDK
  3. 将 android-sdk_r08-windows.zip 解压到C:android-sdk-windows
  4. 追加 C:android-sdk-windows ools到系统环境变量中的 %PATH%.
  5. 运行 C:android-sdk-windows ools>android.bat
  6. 通过 Eclipse 安装 ADT 插件
  7. 通过 Eclipse 创建Android 2.3 - API Level 9"虚拟设备
  8. 窗口 > 首选项 > Java > 已安装的 JRE:[搜索...]

解决方案

我在这里收到了 3 个很棒的答案,尽管这些描述的配置都与问题中描述的原始配置不符,但是...

最后 2 个答案(尤其是来自 @Nicholi 的答案)促使我花时间在另一轮上拉我的头发,试图找到无法解释的问题的解决方案.

我找到了!我自己的配置现在可以在 64 位 Windows 7 上运行,所以简短的回答是:.

以下是对我有用的详细步骤(剪切和保留):

第 0 步:

********************************************************* 卸载 COMODO 防火墙!!!**********************************************************

Comodo 防火墙,又名 CIS,原来是导致时间浪费在 2010 年 12 月(当我发布此帮助请求时)和 2011 年 2 月(当我最终确定问题时)之间的唯一问题.注意:禁用防火墙无济于事,只有完全卸载才真正有效.

步骤 1(JDK 6 64 位):

创建%JAVA_HOME%:C:Program FilesJavajdk1.6.0_23附加到 %PATH%: C:Program FilesJavajdk1.6.0_23in运行:jdk-6u23-windows-x64.exe

注意:不必将 JDK 安装到 C:Java 中.最好坚持使用 Windows 文件夹约定,因为它可以帮助您记住哪个包是 64 位的,哪个是(仍然)32 位的.

第 2 步(Eclipse Classic 64 位):

解压eclipse-SDK-3.6.1-win32-x86_64.zip到C:eclipse

注意:将eclipse目录直接放在C:下很重要,不要放在C:Program Files"下(否则安装ADT插件会导致丢失包问题).>

第 3 步(SDK 入门包又名Android SDK"):

创建 %ANDROID_HOME%: C:android-sdk-windows附加到 %PATH%: C:android-sdk-windowsplatform-tools运行 installer_r09-windows.exe 并安装到 C:android-sdk-windows>选中启动 SDK 管理器">全部被选中.接受.安装.是的,重启亚行.

第 4 步(Eclipse 的 ADT 插件):

帮助>安装新软件 >添加...名称:ADT插件位置:https://dl-ssl.google.com/android/eclipse/选中在安装过程中联系所有更新站点以查找所需的软件"!!!使用:所有可用的站点+ 开发者工具+ 安卓 DDMS 9.0.1.v201101191456-93220+ Android 开发工具 9.0.1.v201101191456-93220+ Android 层次结构查看器 9.0.1.v201101191456-93220>下一个>下一个>结束>重启 Eclipse

第 5 步(Android 虚拟设备):

打开Eclipse.然后:窗口 >Android SDK 和 AVD 管理器>虚拟设备 [新...]名称: AVD23目标:Android 2.3.1 - API 级别 9SD 卡:1024 MiB[创建AVD]

Has anyone been successful in using 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7?

Please answer positively only if, when you invoke the emulator via Eclipse's Run (Ctrl+F11), your app-to-be-debugged's APK is installed automatically onto the Android emulator and you are running this same exact configuration:

  1. Windows 7 Ultimate 64-bit.
  2. JDK 64-bit (jdk-6u23-windows-x64.exe installed.)
  3. JDK 32-bit (jdk-6u23-windows-i586.exe installed.)
  4. Eclipse Classic 3.6 64-bit (eclipse-SDK-3.6.1-win32-x86_64.zip)
  5. Android 2.3 SDK Starter Package

If you are able to fully use 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7, please describe the steps you performed to make this happen.

As of now, the following steps did NOT work for me:

  1. install the 64-bit JDK
  2. install the 32-bit JDK
  3. unzip android-sdk_r08-windows.zip to C:android-sdk-windows
  4. append C:android-sdk-windows ools to %PATH% in System env vars.
  5. Run C:android-sdk-windows ools>android.bat
  6. Install ADT Plugin via Eclipse
  7. Create "Android 2.3 - API Level 9" virtual device via Eclipse
  8. Window > Preferences > Java > Installed JREs: [Search...]

解决方案

I received 3 great answers here although none of those described configurations really match the original configuration described in the question, but...

The last 2 answers (especially the one from @Nicholi) prompted to spend the time on yet-another-round of pulling my hair in an attempt to find a solution to an unexplainable problem.

And I found it! My own configuration now works on 64-bit Windows 7 and so the short answer is: Yes.

Here are the detailed steps, in order, that worked for me (cut & keep):

Step 0:

***********************************************
****** UNINSTALL THE COMODO FIREWALL !!! ******
***********************************************

Comodo Firewall, AKA CIS, turned out to be the sole problem leading to the time wasted between December 2010 (when I posted this request for help) and February 2011 (When I finally nailed the problem down). Note: Disabling the firewall doesn't help, only complete uninstall really works.

Step 1 (JDK 6 64-bit):

Create %JAVA_HOME%: C:Program FilesJavajdk1.6.0_23
Append to %PATH%:   C:Program FilesJavajdk1.6.0_23in
Run:                jdk-6u23-windows-x64.exe

Note: It is not necessary to install the JDK into C:Java. Sticking with the Windows Folders conventions is preferred because it helps you remember which package is 64-bit and which is (still) 32-bit.

Step 2 (Eclipse Classic 64-bit):

Unzip eclipse-SDK-3.6.1-win32-x86_64.zip into C:eclipse

Note: It is critical to have the eclipse directory directly under C: and not under "C:Program Files" (otherwise, ADT Plugin install will incur missing packages problems).

Step 3 (SDK Starter Package AKA "Android SDK"):

Create %ANDROID_HOME%: C:android-sdk-windows
Append to %PATH%:      C:android-sdk-windowsplatform-tools 
Run installer_r09-windows.exe and install to C:android-sdk-windows
 > Check 'Start SDK Manager'
   > All are selected. Accept. Install. Yes, restart ADB.

Step 4 (ADT Plugin for Eclipse):

Help > Install New Software > Add... 
  Name:     ADT Plugin
  Location: https://dl-ssl.google.com/android/eclipse/

  Check "Contact all update sites during install to find required software'!!!

Work with: All available sites
  + Developer Tools
    + Android DDMS              9.0.1.v201101191456-93220
    + Android Development Tools 9.0.1.v201101191456-93220
    + Android Hierarchy Viewer  9.0.1.v201101191456-93220
  > Next
  > Next
  > Finish
  > Restart Eclipse

Step 5 (Android Virtual Device):

Open Eclipse. Then:
  Window > Android SDK and AVD Manager
   > Virtual Devices [New...] 
     Name: AVD23
     Target: Android 2.3.1 - API Level 9
     SD Card: 1024 MiB
     [Create AVD]

这篇关于有没有人成功地在 64 位 Windows 7 上使用 64 位 Eclipse for Android 2.3 dev?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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