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

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

问题描述

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



(更新,回答@ Computerish的问题)在Eclipse的控制台是:

  [2010-12-16 10:23:33  -  HelloAndroid] ------- ----------------------- 
[2010-12-16 10:23:33 - HelloAndroid] Android发布!
[2010-12-16 10:23:33 - HelloAndroid] adb正常运行。
[2010-12-16 10:23:33 - HelloAndroid]执行com.example.helloandroid.HelloAndroid活动启动
[2010-12-16 10:23:33 - HelloAndroid]自动目标模式:启动具有兼容AVD'AVD23'的新模拟器
[2010-12-16 10:23:33 - HelloAndroid]启动一个新的模拟器与虚拟设备'AVD23'

Windows XP上不会出现此问题,运行Eclipse 3.5.2和Android 2.2(全部32位)。



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



Android开发使用的是 64位JDK 不可能(还)?

解决方案

好的,这是最后的答案(截至今天):Android开发,仅使用64位JDK ,是可能(还)。



如果您安装64- Eclipse仅安装32位JDK,Eclipse将拒绝启动。



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



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



但是,64位Eclipse仍然无法在Android模拟器上安装.apk。



结论:Google在64位Windows下不支持Android(还有)是绝对正确的。事实上,一些天才设法做一些魔术,使他们的环境工作超出了我。


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).

(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'

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

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?

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

解决方案

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

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

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

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

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

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天全站免登陆