问Eclips下运行helloworld,弹出手机模拟器上什么也没有选择,怎么回事?

kingbooshoes 2014-02-20 12:18:00
提示:[2014-02-20 00:08:45 - HelloWorld] ------------------------------
[2014-02-20 00:08:45 - HelloWorld] Android Launch!
[2014-02-20 00:08:45 - HelloWorld] adb is running normally.
[2014-02-20 00:08:45 - HelloWorld] Performing com.eoeAndroid.HelloWorld.ActivityMain activity launch
[2014-02-20 00:08:45 - HelloWorld] Automatic Target Mode: Preferred AVD 'android_4_4' is not available. Launching new emulator.
[2014-02-20 00:08:45 - HelloWorld] Launching a new emulator with Virtual Device 'android_4_4'
[2014-02-20 00:10:38 - Emulator] Failed to create Context 0x3005
[2014-02-20 00:10:38 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2014-02-20 00:10:39 - HelloWorld] New emulator found: emulator-5554
[2014-02-20 00:10:39 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
结果会弹出一个手机模拟器,但是上面黑的,什么也没有,怎么回事呢?如何改进,谢谢了。
...全文
530 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
kingbooshoes 2014-02-21
  • 打赏
  • 举报
回复
不好意思,应该没有开机啊!现在开机了,如下图
问怎回事啊?还是不能运行helloworld啊?
kingbooshoes 2014-02-21
  • 打赏
  • 举报
回复


运行后启动模拟器如上面图;
程序如下:
package com.eoeAndroid.HelloWorld;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class ActivityMain extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("你好,Android");
setContentView(tv);
}
}

新手运行人家的工程,应该没有错的啊。

控制台提示:
[2014-02-21 19:28:38 - HelloWorld] ------------------------------
[2014-02-21 19:28:38 - HelloWorld] Android Launch!
[2014-02-21 19:28:38 - HelloWorld] adb is running normally.
[2014-02-21 19:28:38 - HelloWorld] Performing com.eoeAndroid.HelloWorld.ActivityMain activity launch
[2014-02-21 19:28:38 - HelloWorld] Automatic Target Mode: Preferred AVD 'android_4_4' is not available. Launching new emulator.
[2014-02-21 19:28:38 - HelloWorld] Launching a new emulator with Virtual Device 'android_4_4'
[2014-02-21 19:30:09 - Emulator] Failed to create Context 0x3005
[2014-02-21 19:30:09 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2014-02-21 19:30:09 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2014-02-21 19:30:10 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\Administrator\.android\avd\android_4_4.avd/sdcard.img
[2014-02-21 19:30:10 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2014-02-21 19:30:13 - HelloWorld] New emulator found: emulator-5556
[2014-02-21 19:30:13 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2014-02-21 19:31:03 - HelloWorld] emulator-5556 disconnected! Cancelling 'com.eoeAndroid.HelloWorld.ActivityMain activity launch'!

问这是怎么回事啊?我刚学习,谢谢!
Oliver尹 2014-02-20
  • 打赏
  • 举报
回复
是不是你的背景是黑色的,字体也是黑色的,导致看不到?
kingbooshoes 2014-02-20
  • 打赏
  • 举报
回复
电脑的显卡驱动是装电脑配的光盘,如何再更新啊?
shinestare 2014-02-20
  • 打赏
  • 举报
回复
1、是不是安装的最新的ADT和SDK,是的话更新一下显卡驱动,更新的最新 2、将RAM size调大一点参考http://blog.sina.com.cn/s/blog_7e6007cb01019ey4.html
拼搏007 2014-02-20
  • 打赏
  • 举报
回复
最简单的办法:删掉这个模拟器,再新建一个模拟器。 完成之后,手动启动这个模拟器。
kingbooshoes 2014-02-20
  • 打赏
  • 举报
回复
我是新手,要学习了,求您们回答我好吗?
哎,真难 2014-02-20
  • 打赏
  • 举报
回复
同意楼上,[2014-02-20 00:10:39 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...这句话表示要等待avd的反应
niekangshibendan 2014-02-20
  • 打赏
  • 举报
回复
我感觉是你的模拟器还没启动完成就被你关掉了,弹出的模拟器你别急着关,多等会吧!等模拟器出现解锁画面才是启动完成,才能开始调试程序!

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧