显示的错误 点击 Project->Properties 如图所示 打钩(Enable project specific settings) 选择API 把第二个选择项(Forbidden reference)改为Ignore 应用 好了