Why I can only create android project that compile with API 21 or API 22? other than this 2, all will have error with R cannot be resolved, and if I import android.R, it will give me another error which is activity_main cannot be resolved or is not a field. I search for solution from Google but all doesn't work for me. Help me please.

and here is the error if I import android.R

and if I change to avtivity_list_item there still have error.
 
     
    