No view found for id for ShooksFragment
问题 I'm new to all this fragments stuff, and I get an error that couldn't be solved by any of the StackOverflow's questions. My problem is that I'm getting the error of No view found for id 0x7f0c0078 (com.shook.android.shook:id/shooksLayout) for fragment ShooksFragment{1a77ec43 #0 id=0x7f0c0078 when trying to add a fragment dinamically. My code: MainActivity ... @Override public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(