unresolved reference activity_mainnn code example Example: unresolved reference activity_main you should remove import android.R