Android应用程序未在模拟器中显示 [英] Android app not showing in the emulator

查看:193
本文介绍了Android应用程序未在模拟器中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了eclipse,android sdk,创建了AVD(尝试了不同的版本),然后创建了简单的hello world程序(自动生成).

I installed eclipse, android sdk, created AVD (tried with different versions), then created simple hello world program (autogenerated).

当我运行它时,它应该会加载并显示helloworld屏幕...但是什么也没发生.模拟器刚刚加载并显示android主屏幕.我的应用无处可寻.

When I run it, it supposed to load up and show helloworld screen... but nothing happens. Emulator just loads up and shows android main screen. My app is nowhere to be seen.

日志:

[2012-05-19 19:09:34 - GameTest] Android Launch!
[2012-05-19 19:09:34 - GameTest] adb is running normally.
[2012-05-19 19:09:34 - GameTest] Performing org.test.game1.GameTestActivity activity launch
[2012-05-19 19:09:34 - GameTest] Automatic Target Mode: launching new emulator with compatible AVD 'def_avd'
[2012-05-19 19:09:34 - GameTest] Launching a new emulator with Virtual Device 'def_avd'

就是这样...

出什么问题了,我该如何实际加载程序?

What is wrong and how can I actually load up my program?

一些澄清:我尝试事先运行模拟器,然后运行我的应用程序.我尝试直接从Eclipse运行方式-Android应用程序"中运行模拟器,但仍然完全相同.

Some clarifications: I tried to run emulator beforehand, and then running my app. I tried running emulator directly from eclipse "Run as - Android application" but still the same exact thing.

推荐答案

不幸的是,其他答复中没有任何建议有所帮助,但是我找到了不错的解决方法.

如果您拥有android设备,那么最简单的操作就是将其连接到usb,然后点击调试为android应用程序",然后在3或4秒钟内它将加载到您的android设备上.

If you have an android device probably the simplest thing to do would be to connect it to usb and just hit "debug as android application" and in 3 or 4 seconds it will load up on your android device.

要使用该选项,您需要安装USB驱动程序软件包,但这没问题.

To use that option you need to instal USB driver package, but that is no problem.

这篇关于Android应用程序未在模拟器中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆