使用Eclipse在Android虚拟机中启动Android Java项目时出现问题
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了使用Eclipse在Android虚拟机中启动Android Java项目时出现问题,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2983字,纯文字阅读大概需要5分钟。
内容图文
我已经安装并设置了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项目运行”.
内容总结
以上是互联网集市为您收集整理的使用Eclipse在Android虚拟机中启动Android Java项目时出现问题全部内容,希望文章能够帮你解决使用Eclipse在Android虚拟机中启动Android Java项目时出现问题所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。