Android Fragment no view found for ID?

I was having this problem too, until I realized that I had specified the wrong layout in setContentView() of the onCreate() method of the FragmentActivity.

The id passed into FragmentTransaction.add(), in your case R.id.feedContentContainer, must be a child of the layout specified in setContentView().

You didn’t show us your onCreate() method, so perhaps this is the same problem.

Leave a Comment