Android AVD 未显示任何内容。仅“ANDROID”在屏幕中间
我是安卓新手!请帮忙。
我一直在关注谷歌的介绍教程,并成功地安装了所有内容,没有任何问题。但每当我尝试运行 HelloAndroid 示例时,avd 都会启动但不显示任何内容。
请有人帮忙吗?
I am an Android Newbie! please help.
I have been following googles introduction tutorial and managed to install everything with no problems. but whenever i try to run the HelloAndroid example the avd launches but doesnt show anything.
cone somebody help please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
创建 AVD 后,它确实需要很长时间来初始化。在我运行 Win7x64 和 4Gb RAM 的不到一年的 Core2Duo 2.8 GHz 上,初始化 2.2 版本至少需要 5 到 10 分钟(如果不是更长时间)。一旦开始初始化,您可以在 Eclipse 的 DDMS 面板中观看 logcat,并观看它解压并安装模拟器中的所有应用程序。
After you create an AVD it really does take a long time to initialize. On my less than year old Core2Duo 2.8 GHz running Win7x64 and 4Gb of RAM, initializing a 2.2 version took at least 5 to 10 minutes (if not longer). Once it starts initializing you can watch the logcat in the DDMS panel of eclipse and watch it unpack and install all of the apps in the emulator.
使用 USB 线将文件导出到手机会更快,使用文件管理器选择
.apk
文件进行安装,然后从手机运行它。这也为您提供了应用程序的“真实”模拟。它也更快。如果您的应用程序有缺陷,在手机上找到它们然后等待 AVD 加载却发现您的应用程序无法运行会更快!It is quicker to export the file to your phone using USB cable, install it by selecting the
.apk
file with a file manager and run it from your phone. This also gives you "real" simulations of the app. It is quicker also. If your app has flaws, it is quicker to find them on your phone then wait for the AVD to load only to find your app doesn't work!您始终可以从另一个窗口运行“adb shell”或“adb logcat”来查看发生了什么...
You can always run 'adb shell' or 'adb logcat' from another window to see what is happening...
我遇到了同样的问题,但我通过从 C:\Users\User\ 删除 .android 文件夹来修复它。
现在每次启动 Eclipse 或 AVD 时,我都会删除该文件夹。之后一切都充满魅力。
可选:如果问题仍然存在,请尝试克隆 NEXUS S AVD。
I had the same problem but I fixed it by deleting .android folder from C:\Users\User\
Now everytime I start Eclipse or AVD, I delete that folder. After that everything works charm.
OPTIONAL : If the problem still persists, try to clone the NEXUS S AVD.
你等了多久?在我的(确实较旧且较慢的)家用计算机上,AVD 首次初始化可能需要一些时间。我刚刚尝试过,屏幕中央的“ANDROID”大约需要 90 秒才能替换为主屏幕,然后应用程序运行大约需要 30 秒。
How long did you wait for it? On my (admittedly older and slower) home computer, it can take some time for the AVD to initialize the first time. I've just tried it and it takes about 90 seconds for the "ANDROID" in the center of the screen to be replaced with the home screen, then about another 30 seconds for the application to run.
我也有同样的问题。这是因为我安装ADT插件后没有重新启动系统。重新启动我的系统后它工作正常。
I had the same problem. It was because i hadn't restarted my system after installing ADT plugin. It worked fine after restarting my system.
有时我发现它只是挂在加载屏幕上,如果你重新启动它,它就会正常。另外,根据记忆,第一次加载可能需要很长时间。
Occasionally i've found that it just hangs up on the loading screen, and if you restart it, it comes right. Also, from memory it can take awful long to load first time.
对于 Ubuntu(我使用 Xubuntu):
我的 Android 虚拟设备未启动,因为我使用了 ubuntu 的 NVIDIA 驱动程序。将驱动程序更改为 Nouveau 后,它在 15 秒内启动。
进入“设置管理器”->软件及已更新->其他驱动程序选择:“使用 X.org x 服务器 -- Nouveau 显示驱动程序(开源)”
NVIDIA F# U http://www.youtube.com/watch?v=55XVnJ_0qhg
For Ubuntu (I use Xubuntu):
Mine Android Virtual Devices didn't started because i used NVIDIA drivers for ubuntu. After changing drivers to Nouveau it booted in 15sec.
Go to "Settings Manager" -> Software & Updated -> Additional Drivers chose: "Using X.org x server -- Nouveau display driver (open source)"
NVIDIA F# U http://www.youtube.com/watch?v=55XVnJ_0qhg
是的,花了太多时间才开始......
尝试在系统 BIOS 设置中打开可视化......
对于我来说,在切换之前它没有显示任何内容。更改后,启动系统规格需要 3 分钟
:
i5 双核
4GB
Nvidia 2G
Yeah It took too much time to start....
Try Switching on Visualization in the system BIOS Settings....
For me before switching it didn't show up anything. After changing it took 3 mins to initiate
System Specs:
i5 Dual Core
4Gb
Nvidia 2G
停止模拟器 -->打开ADV管理器-->编辑虚拟设备-->单击显示高级设置-->设置Ram大小512mb -->启动模拟器
Stop the emulator --> Open ADV Manager --> Edit the Virtual device --> Click Show Advanced Settings --> Set the Ram size 512mb --> Start the emulator