解决方案: 1.右击项目选择 properties 2.选择android. 设置API 版本为你机子上安装最新版本,一般我们要下载最新的API,我这里如图所示. 3.确定后,菜单栏project,点击clean即可解决错误。