问题描述
在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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!