[英]64-bit Eclipse won't install .apk on Android emulator
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). 在Windows 7 64位,运行Eclipse 3.6 64位,JDK(jdk1.6.0_23)64位和Android 2.3(bitness?)上,通过Eclipse的Run | Run(Ctrl + F11)运行程序会调用android仿真器,但不会在模拟器上安装.apk(当然也不会运行它)。
(update, answering @Computerish's question) All I am getting at Eclipse's Console is: (更新,回答@Computerish的问题)在Eclipse的控制台上,我得到的只是:
[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). 在运行Eclipse 3.5.2和Android 2.2(全部为32位)的Windows XP上不会发生此问题。
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 '.
任务管理器将adb的映像名称显示为“ adb.exe * 32 ”。 Perhaps there is a mismatch between the bitness of Eclipse+JDK (64-bit) and the Android emulator/SDK?
Eclipse + JDK(64位)和Android仿真器/ SDK的位数之间可能不匹配吗?
Is Android development using 64-bit JDK not possible (yet)? 尚无法使用64位JDK进行 Android开发吗?
OK, here is the final answer (as of today): Android development, using 64-bit JDK only , is not possible (yet). 好的,这是最终的答案(截止到今天): 不能 ( 仅 )使用64位JDK进行Android开发。
If you install the 64-bit Eclipse and install only the 32-bit JDK, Eclipse will refuse to start. 如果您安装64位Eclipse并仅安装32位JDK,则Eclipse将拒绝启动。
So, if you decided to install the 64-bit Eclipse, you need to install both the 64-bit JDK and the 32-bit JDK. 因此,如果您决定安装64位Eclipse,则需要同时安装64位JDK 和 32位JDK。
Thereafter, even the infamous installer_r08-windows.exe will run (and even invoke "SDK Manager.exe" automatically for you). 此后,甚至臭名昭著的installer_r08-windows.exe也将运行(甚至自动为您调用“ SDK Manager.exe”)。
But 64-bit Eclipse still won't install .apk on Android emulator. 但是64位Eclipse仍不会在Android模拟器上安装.apk。
Conclusion: Google is absolutely correct in stating that Android is not supported (yet) under 64-bit Windows. 结论:Google绝对正确(指出)(尚未)在64位Windows下支持Android。 The fact that some geniuses manages to do some magic to make their environment work is beyond me.
有些天才设法做一些魔术来使他们的环境正常工作,这一事实超出了我。
I know this might be late, but I found a fix for it. 我知道这可能会晚,但是我找到了解决方法。
I'm running: 我在跑:
-64-bit Windows 7 -64位Windows 7
-64-bit Java 1.7 SDK -64位Java 1.7 SDK
-64-bit Eclipse for Java Developers + ADT Plugin Java开发人员使用的-64位Eclipse + ADT插件
-64-bit Android SDK -64位Android SDK
So what I do is save my java source files, and run the application through Eclipse. 因此,我要做的是保存我的Java源文件,并通过Eclipse运行该应用程序。 I close the emulator after it fully loads to the home screen.
模拟器完全加载到主屏幕后,我将其关闭。 Next, I go to my command prompt in Win7 and type emulator -verbose -avd youravdname .
接下来,我进入Win7中的命令提示符,然后键入emulator -verbose -avd youravdname 。 After you press enter, Eclipse will decide to upload and install the .apk file onto the emulator.
在按Enter键之后,Eclipse将决定将.apk文件上传并安装到仿真器上。 Now you can see your new activities!
现在您可以看到您的新活动!
It's very cumbersome, and I wonder why this even works. 这非常麻烦,而且我想知道为什么这还行得通。 I seriously spent hours wondering if I even installed everything correctly.
我认真地花了几个小时,想知道我是否正确安装了所有东西。
I suppose that 32-bit ADB waits for 32-bit JDK. 我想32位ADB等待32位JDK。 Just install 32-bit JDK - and everything should work after that.
只需安装32位JDK-之后一切都应正常工作。 i'm running Android SDK on 64 bit machine with both installed JDK's 32 and 64 bits - and everything is OK
我在安装了JDK的32位和64位的64位计算机上运行Android SDK-一切正常
I had the same problem as the original poster and I'm also using Android SDK 2.3, Eclipse Helios, JDK 1.6.0_23 64-bit on Windows 7 Professional 64-bit. 我遇到了与原始海报相同的问题,并且还在Windows 7 Professional 64位上使用Android SDK 2.3,Eclipse Helios,JDK 1.6.0_23 64位。
However, once I've killed the adb.exe *32 process and then restarted eclipse and then tried running HelloAndroid app again, the emulator started successfully, the app *.apk was loaded and ran perfectly. 但是,一旦我杀死了adb.exe * 32进程,然后重新启动了eclipse,然后再次尝试运行HelloAndroid应用程序,模拟器就成功启动,该应用程序* .apk已加载并完美运行。
I didn't do anything else and I haven't installed JDK 32-bit on my machine. 我没有做任何其他事情,也没有在计算机上安装32位JDK。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.