Android AVD 未显示任何内容。仅“ANDROID”在屏幕中间

发布于 2024-09-19 04:07:12 字数 119 浏览 5 评论 0原文

我是安卓新手!请帮忙。

我一直在关注谷歌的介绍教程,并成功地安装了所有内容,没有任何问题。但每当我尝试运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

却一份温柔 2024-09-26 04:07:12

创建 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.

一身软味 2024-09-26 04:07:12

使用 USB 线将文件导出到手机会更快,使用文件管理器选择 .apk 文件进行安装,然后从手机运行它。这也为您提供了应用程序的“真实”模拟。它也更快。如果您的应用程序有缺陷,在手机上找到它们然后等待 AVD 加载却发现您的应用程序无法运行会更快!

  1. 转到文件 ->导出,选择 android 文件夹,然后选择 android 应用程序。
  2. 在下一页上,选择要导出的应用程序。
  3. 创建密钥文件和别名。
  4. 弹出手机,然后打开您选择的文件管理器,然后单击该应用程序。
  5. 使用 android 软件包安装程序运行,您需要在设置中启用无市场应用程序安装
  6. 安装完成后打开应用程序。

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!

  1. Goto File -> Export, select android folder then android application.
  2. On the next page, select the application you want to export.
  3. Create a keyfile and an alias.
  4. Eject your phone, then open your file manager of choice, and click on the app.
  5. Run using android package installer, you will need to enable no market application install in your settings
  6. Open the app after the install is complete.
淡写薰衣草的香 2024-09-26 04:07:12

您始终可以从另一个窗口运行“adb shell”或“adb logcat”来查看发生了什么...

You can always run 'adb shell' or 'adb logcat' from another window to see what is happening...

焚却相思 2024-09-26 04:07:12

我遇到了同样的问题,但我通过从 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.

傲娇萝莉攻 2024-09-26 04:07:12

你等了多久?在我的(确实较旧且较慢的)家用计算机上,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.

一腔孤↑勇 2024-09-26 04:07:12

我也有同样的问题。这是因为我安装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.

缪败 2024-09-26 04:07:12

有时我发现它只是挂在加载屏幕上,如果你重新启动它,它就会正常。另外,根据记忆,第一次加载可能需要很长时间。

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.

水水月牙 2024-09-26 04:07:12

对于 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

捎一片雪花 2024-09-26 04:07:12

是的,花了太多时间才开始......
尝试在系统 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

明天过后 2024-09-26 04:07:12

停止模拟器 -->打开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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文