You are getting Unresolved reference and it is because you are trying to access it from MainActivity class, but the TextView you are trying to access is in FirstFragment class.
Either declare the textView in you activity_main.xml or try to access it in the fragment class.