今天,我已经更新了android支持v7 appcompat到版本23.更新后,eclipse在文件头显示错误Call requires API level 11 (current min is 8): android.app.Activity#onCreateView
。这是我的java代码
package xxxxxx.xxxxxxx.xxxx.xx.activity;
import xxxxxx.xxxxxxx.xxxx.xx.R;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.LinearLayout;
import android.widget.TextView;
public class SingActivity extends AppCompatActivity {
private LinearLayout layInfo;
private TextView lblSongName;
private TextView lblStatus;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sing);
layInfo = (LinearLayout) findViewById(R.id.lay_info);
lblSongName = (TextView) findViewById(R.id.lbl_song_name);
lblStatus = (TextView) findViewById(R.id.lbl_status);
}
@Override
public void onBackPressed() {
finish();
}
}