제가 R.java를 계속 날려서 새 프로젝트를 만들어서 전에 있던 안드로이드 xml와 클래스에 있는 자바코드를 전부 복사를 해서 쓰는데
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button bn = (Button)findViewById(R.id.bt2);
bn.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
Intent intent = new Intent(MainActivity.this, second.class);
startActivity(intent);
}
});
}
빌드하고 클린도 하고 리플레쉬도 했을 때 저 빨간색 부분이 이렇게 했을 때 저 create constant 'bt2' in type 'id' 와 create field 'bt2' in type 'id' 가 계속 뜹니다 어떻게 해야하나요... ㅜㅜ 아무리 구글이나 사이트를 뒤져도 모르겠어요