layout cannot be resolved or is not a field,该如何处理

layout cannot be resolved or is not a field
代码如下:
package zyf.Ex10_UI;

import java.text.DecimalFormat;
import java.text.NumberFormat;

//import com.example.xiao.R;

//import android.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class BMIActivity extends Activity {
private static final String R = null;
private Bundle savedInstanceState;
//@Override
public void OnCreate(Bundle saveInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.myLayout);
Bundle bunde=this.getIntent().getExtras();
String sex=bunde.getString("sex");
Double height = bunde.getDouble("height");
String sexText="";
if (sex.equals("M")){
sexText="男性";
}
else
{
sexText="女性";

}
String weight=this.getWeight(sex,height);
TextView tv1=(TextView) findViewById(R.id.text1);
tv1.setText(""+sexText+"/n你的身高是"+height+"厘米\n你的标准体重是"+weight+"公斤");



}
private String format (double num){
NumberFormat formatter= new DecimalFormat("0.00");
String s = formatter.format(num);
return s;

}
private String getWeight(String sex , double height){
String weight="";
if (sex.equals("M")){
weight= format((height - 80)*0.7);}
else{
weight= format((height - 70)*0.6);
}
return weight;
}
}


layout cannot be resolved or is not a field


------解决方案--------------------
从异常上看是  myLayout没有定义好
------解决方案--------------------
  <TextView>
      android:id="@+id/text1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textSize="20sp"
      android:layout_x="50px"
      android:layout_y="72px"   >
      </TextView>