1、build.gradle中确认已添加

1
compile 'com.android.support:appcompat-v7:21.0.3'

2、菜单里Build->Clean Project

3、菜单里Tools->Android->Sync Project with gradle files