TextView myTextView=(TextView)findViewById(R.id.myTextView);报错,该如何处理

TextView myTextView(TextView)findViewById(R.id.myTextView)报错TextView myTextView(TextView)findV

TextView myTextView=(TextView)findViewById(R.id.myTextView);报错
TextView myTextView=(TextView)findViewById(R.id.myTextView);

报错:TextView cannot be resolved to a type

这是由于什么造成的呀?

[解决办法]
没加import android.widget.TextView;