I\'m getting an error in this part of code:
private void displayView(int position) { // update the main content by replacing fragments Fragment fragm
In Android Studio 2.3 getSupportFragmentManager works with android.support.v4.app but android studio 3.1 you have to use getFragmentManager enter image description here