The type * is not accessible due to restriction on required library”的错误, 意思是所需要的类库由于受限制无法访问。 解决办法: 1.选中项目->右键->进入Properties视图,选中Java Build ...