java.lang.RuntimeException:

kaiyuanww 发布于 2013/11/19 22:45
阅读 619
收藏 0
编译时没错,就是直接异常退出求大神啊
11-19 09:08:01.511: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.englishassist/com.example.englishassist.Tingshuo}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030018

报错处:
protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	  setContentView(R.layout.tingshuo);       //《《《---------------报错处--------------------
	  
	  btn1=(Button)this.findViewById(R.id.t_one);
		btn1.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Intent intent=new Intent();
				intent.setClass(Tingshuo.this, Ting_1.class);
				startActivity(intent);
			}
		});
加载中
返回顶部
顶部