emulator-5554 disconnected! Cancelling 'com.china.hello.HelloChina activity launch'!
首先,控制台提示连接模拟器失败,没有启动你的HelloChina其次,
public void onCreate(Bundle saveInstanceState) {  super.onCreate(saveInstanceState);  //setContentView(R.layout.main); // 这个不能注释掉,这个是你要加载的layout  TextView tv = new TextView(this);  tv.setText("helloWorld");  setContentView(tv); // 这样用是不对的,textview不是一个layout,必须用layout才行,所以前面的setContentView不能注释掉楼主可以先把默认生成的layout显示出来,然后再一步步修改成你想要的,那样至少保证版本是正确的。  }

解决方案 »

  1.   

    ...setContentView必须在前面。
      

  2.   


    请慎重回帖。可以直接使用TextView。
      

  3.   

    无反应是由于emulator-5554 disconnected!的原因这种情况可能用以下方式解决:打开Eclipse的IDE:
        1.1  英文原版
          window -> Show Views -> device -> view menu -> Reset adb
        1.2  中文版
          窗口(W) -> 显示视图(V) ->Devices -> 视图菜单 ->Reset adb 
      

  4.   

    现在不提示错误了,可是也还是什么也没显示,只在一个黑和背景中间显示了ANDROID_这几个字母,是不是我没装对啊,我只安装了一下,然后写进去教程里示例的代码,然后运行就是这样
    [2010-12-01 12:39:04 - HelloChina] ------------------------------
    [2010-12-01 12:39:04 - HelloChina] Android Launch!
    [2010-12-01 12:39:04 - HelloChina] adb is running normally.
    [2010-12-01 12:39:04 - HelloChina] Performing com.china.hello.HelloChina activity launch
    [2010-12-01 12:39:04 - HelloChina] Automatic Target Mode: launching new emulator with compatible AVD '2.2'
    [2010-12-01 12:39:04 - HelloChina] Launching a new emulator with Virtual Device '2.2'
    [2010-12-01 12:39:16 - HelloChina] New emulator found: emulator-5554
    [2010-12-01 12:39:16 - HelloChina] Waiting for HOME ('android.process.acore') to be launched...
      

  5.   

    多谢指点!一会试试设置TextView。
      

  6.   


    话说,我这08年买的HP本开模拟器也要老久老久....有可能的话去买个真机吧,真机调试边USB就ok了