【发布时间】:2011-05-26 14:00:40
【问题描述】:
在 Windows 7 64 位上,运行 Eclipse 3.6 64 位、JDK (jdk1.6.0_23) 64 位和 Android 2.3(位?),通过 Eclipse 的 Run|Run (Ctrl+F11) 运行程序会调用android 模拟器,但不会在模拟器上安装 .apk(当然也不会运行它)。
(更新,回答 @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'
在运行 Eclipse 3.5.2 和 Android 2.2(均为 32 位)的 Windows XP 上不会出现此问题。
我尝试了this thread 中接受的答案所建议的解决方案,但没有帮助。任务管理器将 adb 的图像名称显示为“adb.exe *32”。可能是Eclipse+JDK(64位)和Android模拟器/SDK的位数不匹配?
使用 64 位 JDK 进行 Android 开发是否可行(目前)?
【问题讨论】:
-
您在哪个文件夹中安装了 Eclipse?我在 Android + JDK 中使用 64 位 eclipse
-
Eclipse 在 C:\eclipse,JDK 在 C:\Program Files\Java\jdk1.6.0_23,Android 在 C:\android-sdk-windows。 @Galip,你的 JDK 是 64 位的吗?您是否也安装了 32 位 JDK?
-
Android 2.3 非常新。您是否尝试过使用 2.2 模拟器?你得到任何 LogCat 或控制台输出了吗?
-
@Computerish,现在我只对 Android 2.3 感兴趣。我想知道是否有人设法完成上述配置工作。
-
@Android Eve 我有 32 位 JDK。当你在命令提示符下输入“adb”时,你得到了什么?
标签: android eclipse 64-bit android-emulator apk