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