@layout/activity_main does not contain a declaration with id XXX,findViewById(R.id.XXX)爆红解决方法...
问题描述:在MainActivity.java中,通过id寻找checkbox,明明能显示这个组件的id,Ctrl+点击也能跳转过去,但是就是爆红,提示@layout/activity_maindoesnotcontainadeclarationwithidXXX成功跳转解决方法:原来是setContentView(R.layout.activity_main);没有更改。将setContentV