当试图运行hello android测试应用程序时,我收到错误APPCRASH并且模拟器将无法打开

时间:2010-11-04 15:48:22

标签: android eclipse

这是完整错误 问题签名:   问题事件名称:APPCRASH   应用程序名称:emulator.exe   应用版本:0.0.0.0   应用程序时间戳:4c79ab54   故障模块名称:ntdll.dll   故障模块版本:6.1.7600.16559   故障模块时间戳:4ba9b21e   例外代码:c0000005   异常抵消:0005a6f0   操作系统版本:6.1.7600.2.0.0.768.11   区域设置ID:1033   附加信息1:0a9e   附加信息2:0a9e372d3b4ad19135b953a78882e789   附加信息3:0a9e   附加信息4:0a9e372d3b4ad19135b953a78882e789

这里是完整的src .java代码

package com.example.helloandroid;

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

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

     TextView tv = new TextView(this);
     tv.setText("Hello, Android");
     setContentView(tv);


     //setContentView(R.layout.main);
 }
 }

我在eclipse gallileo中运行2.0 sdk,虽然我已经尝试了其他人

1 个答案:

答案 0 :(得分:1)

您是否在Manifest中声明了SDK版本?

按“运行”后,您选择“Android应用程序”吗?

您执行了此处列出的所有操作:http://developer.android.com/sdk/installing.html 安装SDK时?

相关问题