64 位 Eclipse 不会在 Android 模拟器上安装 .apk [英] 64-bit Eclipse won't install .apk on Android emulator

查看:21
本文介绍了64 位 Eclipse 不会在 Android 模拟器上安装 .apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 7 64 位上,运行 Eclipse 3.6 64 位、JDK (jdk1.6.0_23) 64 位和 Android 2.3(位数?),通过 Eclipse 的 Run|Run (Ctrl+F11) 运行程序会调用android 模拟器,但不会在模拟器上安装 .apk(当然也不会运行它).

On Windows 7 64-bit, running Eclipse 3.6 64-bit, JDK (jdk1.6.0_23) 64-bit and Android 2.3 (bitness?), running a program via Eclipse's Run|Run (Ctrl+F11) invokes the android emulator, but won't install .apk on the emulator (and certainly won't run it).

(更新,回答@Computerish 的问题)我在 Eclipse 的控制台上得到的只是:

(update, answering @Computerish's question) All I am getting at Eclipse's Console is:

[2010-12-16 10:23:33 - HelloAndroid] ------------------------------
[2010-12-16 10:23:33 - HelloAndroid] Android Launch!
[2010-12-16 10:23:33 - HelloAndroid] adb is running normally.
[2010-12-16 10:23:33 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2010-12-16 10:23:33 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'AVD23'
[2010-12-16 10:23:33 - HelloAndroid] Launching a new emulator with Virtual Device 'AVD23'

在运行 Eclipse 3.5.2 和 Android 2.2(均为 32 位)的 Windows XP 上不会发生此问题.

This problem doesn't happen on Windows XP, running Eclipse 3.5.2 and Android 2.2 (all 32-bit).

我尝试了这个线程中接受的答案建议的解决方案 但它没有帮助.任务管理器将 adb 的图像名称显示为adb.exe *32".也许Eclipse+JDK(64位)和Android模拟器/SDK的位数不匹配?

I tried the solution suggested by the accepted answer in this thread but it didn't help. Task manager shows adb's Image Name as 'adb.exe *32'. Perhaps there is a mismatch between the bitness of Eclipse+JDK (64-bit) and the Android emulator/SDK?

使用 64 位 JDK 的 Android 开发是否可行(目前)?

Is Android development using 64-bit JDK not possible (yet)?

推荐答案

好的,这是最终答案(截至今天):Android 开发,仅使用 64 位 JDK ,是 不可能(目前).

OK, here is the final answer (as of today): Android development, using 64-bit JDK only, is not possible (yet).

如果你安装了 64 位 Eclipse 并且只安装了 32 位 JDK,Eclipse 将拒绝启动.

If you install the 64-bit Eclipse and install only the 32-bit JDK, Eclipse will refuse to start.

因此,如果您决定安装 64 位 Eclipse,则需要安装 64 位 JDK 32 位 JDK.

So, if you decided to install the 64-bit Eclipse, you need to install both the 64-bit JDK and the 32-bit JDK.

此后,即使是臭名昭著的 installer_r08-windows.exe 也会运行(甚至会自动为您调用SDK Manager.exe").

Thereafter, even the infamous installer_r08-windows.exe will run (and even invoke "SDK Manager.exe" automatically for you).

但是 64 位 Eclipse 仍然不会在 Android 模拟器上安装 .apk.

But 64-bit Eclipse still won't install .apk on Android emulator.

结论:Google 在声明 64 位 Windows 下(目前)不支持 Android 的说法是绝对正确的.一些天才设法施展魔法让他们的环境发挥作用这一事实超出我的想象.

Conclusion: Google is absolutely correct in stating that Android is not supported (yet) under 64-bit Windows. The fact that some geniuses manages to do some magic to make their environment work is beyond me.

这篇关于64 位 Eclipse 不会在 Android 模拟器上安装 .apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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