Change the target sdk version AND compile sdk version to 21 AND 21, so I will not have error msgs on android support library v4 and can compile the code. The code can be compiled with 0 error.