I don't know how to fix the error in the images below:
I think you didn't imported 'OnCheckedChangeListener' in your class. Just keep import android.widget.RadioGroup.OnCheckedChangeListener; in your imports.
import android.widget.RadioGroup.OnCheckedChangeListener;