在studio中有些代码没有自动生成,有关于R的地方一直显示红色
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
LayoutInflater inflate = LayoutInflater.from(MainActivity.this);
View viewDialog = inflate.inflate(R.layout.new_cost_data, null);
final EditText title = (EditText) viewDialog.findViewById(R.id.et_cost_title);
final EditText money = (EditText) viewDialog.findViewById(R.id.et_cost_money);
final DatePicker date = (DatePicker) viewDialog.findViewById(R.id.dp_cost_date);