使用Eclipse在Android虚拟机中启动Android Java项目时出现问题
作者:互联网
我已经安装并设置了Eclipse和插件ADT,以便与Android SDK一起使用.到现在为止还挺好.但是,当我尝试为我选择的任何android平台(例如android 3.2)启动VM(虚拟机)时,我只是将皮肤与键盘控制台和电话按钮一起启动,它似乎会启动并进入然后什么也没做,只在vm主屏幕上显示android徽标,这就是它的全部-没有了,没有VM功能!,这是怎么回事?我错过了一些步骤吗?请帮忙…
在每种情况下,有时都要等待10分钟以上才能启动模拟器.
我启动/运行了一个Android项目测试示例;在安装适用于Android的ADT插件后,从eclipse环境中获取“ hello world”.这是我在控制台ddms中显示的错误消息:
[2012-04-30 14:31:20 – HelloAndroid]
[2012-04-30 14:31:20 – HelloAndroid] Android Launch!
[2012-04-30 14:31:20 – HelloAndroid] adb is running normally.
[2012-04-30 14:31:20
– HelloAndroid] Performing com.example.helloandroid.HelloAndroidActivity activity launch[2012-04-30 14:31:20 – HelloAndroid] Automatic Target Mode: launching
new emulator with compatible AVD
‘leighs_basic_hardware_secound_virtual_device’[2012-04-30 14:31:20 –
HelloAndroid] Launching a new emulator with Virtual Device
‘leighs_basic_hardware_secound_virtual_device’[2012-04-30 14:31:40 –
Emulator] Warning: No DNS servers found[2012-04-30 14:31:52 –
Emulator] emulator: emulator window was out of view and was recentered
[2012-04-30 14:31:52 – Emulator][2012-04-30 14:31:53 – HelloAndroid]
New emulator found: emulator-5554[2012-04-30 14:31:53 – HelloAndroid]
Waiting for HOME (‘android.process.acore’) to be launched…[2012-04-30 14:49:03 – HelloAndroid] HOME is up on device
’emulator-5554′ [2012-04-30 14:49:03 – HelloAndroid] Uploading
HelloAndroid.apk onto device ’emulator-5554′[2012-04-30 14:49:03 –
HelloAndroid] Installing HelloAndroid.apk…[2012-04-30 14:51:38 –
HelloAndroid] Failed to install HelloAndroid.apk on device
’emulator-5554![2012-04-30 14:51:38 – HelloAndroid] (null)
[2012-04-30 14:51:39 – HelloAndroid] Launch canceled!
除了模拟器上显示的Android徽标外,我什么都没有.我已经尝试了各种平台模拟器-它们都没有执行!
在检查“运行配置”菜单中擦除的用户数据后,我在测试运行中收到的第二批错误是:结果
: [2012-04-30 17:20:27 – Emulator] Failed to allocate memory: 1455
[2012-04-30 17:20:27 – Emulator][2012-04-30 17:20:27 – Emulator] This
application has requested the Runtime to terminate it in an unusual
way.
[2012-04-30 17:20:27 – Emulator] Please contact the application’s
support team for more information.
如果有人要检查,我使用Novabench的计算机的基准测试结果为:
30/04/2012 17:45:59 Microsoft Windows 7 Starter Intel Atom N550
1.50GHz @ 1500 MHz Graphics Card: Intel(R) Graphics Media Accelerator 3150
1014 MB System RAM (Score: 78) – RAM Speed: 1610 MB/s
CPU Tests (Score: 70) – Floating Point Operations/Second: 24110532 –
Integer Operations/Second: 43813828 – MD5 Hashes Generated/Second:
159380
Graphics Tests (Score: 1) – 3D Frames Per Second: 3
Hardware Tests (Score: 6) – Primary Partition Capacity: 87 GB – Drive
Write Speed: 14 MB/s
解决方法:
您是运行项目还是仅启动模拟器?启动模拟器后,单击“运行”按钮,然后选择“作为Android项目运行”.
标签:android,java,eclipse,virtual-machine 来源: https://codeday.me/bug/20191010/1884798.html