Android AVD 没有显示任何内容。屏幕中间只有“ANDROID”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3692363/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android AVD not showing anything. only "ANDROID" in the middle of the screen
提问by Arturski
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.
我一直在关注谷歌的介绍教程,并设法安装了所有东西,没有任何问题。但是每当我尝试运行 HelloAndroid 示例时,avd 都会启动但不显示任何内容。
cone somebody help please?
锥有人帮忙吗?
回答by Morrison Chang
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.
创建 AVD 后,初始化确实需要很长时间。在我运行 Win7x64 和 4Gb RAM 的不到一年的 Core2Duo 2.8 GHz 上,初始化 2.2 版本至少需要 5 到 10 分钟(如果不是更长的话)。一旦它开始初始化,您就可以在 Eclipse 的 DDMS 面板中观看 logcat 并观看它解压并安装模拟器中的所有应用程序。
回答by Platinum Pufferfish
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!
使用 USB 数据线将文件导出到您的手机会更快,通过使用.apk
文件管理器选择文件来安装它并从您的手机运行它。这也为您提供了应用程序的“真实”模拟。它也更快。如果您的应用程序有缺陷,在您的手机上找到它们会更快,然后等待 AVD 加载才发现您的应用程序不起作用!
- Goto File -> Export, select android folder then android application.
- On the next page, select the application you want to export.
- Create a keyfile and an alias.
- Eject your phone, then open your file manager of choice, and click on the app.
- Run using android package installer, you will need to enable no market application install in your settings
- Open the app after the install is complete.
- 转到File -> Export,选择 android 文件夹,然后选择 android 应用程序。
- 在下一页上,选择要导出的应用程序。
- 创建密钥文件和别名。
- 弹出您的手机,然后打开您选择的文件管理器,然后单击该应用程序。
- 使用 android 软件包安装程序运行,您需要在设置中启用无市场应用程序安装
- 安装完成后打开应用程序。
回答by Matthieu
You can always run 'adb shell' or 'adb logcat' from another window to see what is happening...
您始终可以从另一个窗口运行“adb shell”或“adb logcat”以查看发生了什么...
回答by zackygaurav
I had the same problem but I fixed it by deleting .androidfolder from C:\Users\User\
我遇到了同样的问题,但我通过从 C:\Users\User\ 中删除.android文件夹来修复它
Now everytime I start Eclipse or AVD, I delete that folder. After that everything works charm.
现在每次启动 Eclipse 或 AVD 时,我都会删除该文件夹。之后,一切正常。
OPTIONAL :If the problem still persists, try to clone the NEXUS S AVD.
可选:如果问题仍然存在,请尝试克隆 NEXUS S AVD。
回答by Niall C.
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.
你等了多久?在我的(公认的较旧且较慢的)家用计算机上,AVD 首次初始化可能需要一些时间。我刚刚尝试过,屏幕中央的“ANDROID”大约需要 90 秒才能被主屏幕替换,然后应用程序运行大约需要 30 秒。
回答by chdt
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.
我有同样的问题。这是因为我在安装 ADT 插件后没有重新启动我的系统。重新启动系统后它工作正常。
回答by Sam Svenbjorgchristiensensen
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.
偶尔我发现它只是挂在加载屏幕上,如果你重新启动它,它就会正确。此外,从内存中第一次加载可能需要很长时间。
回答by aki237
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
是的 启动时间太长了.... 尝试在系统 BIOS 设置中打开可视化.... 对我来说,在切换之前它没有显示任何内容。更改后需要 3 分钟才能启动
System Specs: i5 Dual Core 4Gb Nvidia 2G
系统规格: i5 双核 4Gb Nvidia 2G
回答by yakup_y
Stop the emulator --> Open ADV Manager --> Edit the Virtual device --> Click Show Advanced Settings --> Set the Ram size 512mb --> Start the emulator
停止模拟器 --> 打开 ADV Manager --> 编辑虚拟设备 --> 单击显示高级设置 --> 将内存大小设置为 512mb --> 启动模拟器
回答by Andrzej Rehmann
For Ubuntu (I use Xubuntu):
对于 Ubuntu(我使用 Xubuntu):
Mine Android Virtual Devices didn't started because i used NVIDIA drivers for ubuntu. After changing drivers to Nouveau it booted in 15sec.
我的 Android 虚拟设备没有启动,因为我为 ubuntu 使用了 NVIDIA 驱动程序。将驱动程序更改为 Nouveau 后,它在 15 秒内启动。
Go to "Settings Manager" -> Software & Updated -> Additional Drivers chose: "Using X.org x server -- Nouveau display driver (open source)"
转到“设置管理器”-> 软件和更新-> 附加驱动程序选择:“使用 X.org x 服务器 -- Nouveau 显示驱动程序(开源)”
NVIDIA F# U http://www.youtube.com/watch?v=55XVnJ_0qhg
NVIDIA F# U http://www.youtube.com/watch?v=55XVnJ_0qhg