TextView cannot be resolved to a type

来源:互联网 发布:淘宝客服评价系统 编辑:程序博客网 时间:2024/06/05 03:09
private TextView textview;    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.activity_main);        textview = (TextView)findViewById(R.id.textview);
出现"TextView cannot be resolved to a type“错误,
使用快捷键“ctrl+shift+O”即可自动添加相应的import。

0 0
原创粉丝点击