问题描述
- 新建一个android helloworld应用,但运行后只显示android几个字,不显示helloworld.
-
工程启动后,console显示以下报错信息Android Launch!
[2014-03-31 15:07:08 - firstapp] adb is running normally.
[2014-03-31 15:07:08 - firstapp] Performing com.example.firstapp.MainActivity activity launch
[2014-03-31 15:07:10 - firstapp] Automatic Target Mode: Preferred AVD 'avd442' is not available. Launching new emulator.
[2014-03-31 15:07:10 - firstapp] Launching a new emulator with Virtual Device 'avd442'
[2014-03-31 15:09:22 - Emulator] Failed to create Context 0x3005
[2014-03-31 15:09:22 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2014-03-31 15:09:24 - firstapp] New emulator found: emulator-5554
[2014-03-31 15:09:24 - firstapp] Waiting for HOME ('android.process.acore') to be launched...
[2014-03-31 15:20:03 - firstapp] emulator-5554 disconnected! Cancelling 'com.example.firstapp.MainActivity activity launch'!
望 高手解答。
解决方案
你虚拟机都还没有打开。。。
emulator-5554失去连接。。
android开发需要看虚拟机的,看效果的,不是像java初学那样,看控制台后台输出的。。。
解决方案二:
只显示 android 几个字? 你说的是模拟器开机启动的时候显示这几个字吧?
如果是这样的话,请先运行模拟器,等启动完毕之后再运行你的helloworld项目。