因为eclipse默认把一些禁止访问一些API
Winsow->Preferences->java->compiler->Errors/Warnings->Deprecated and restricted API->Forbidden reference(access rules): 把Error改成Warrning就可以完美运行了。
因为eclipse默认把一些禁止访问一些API
Winsow->Preferences->java->compiler->Errors/Warnings->Deprecated and restricted API->Forbidden reference(access rules): 把Error改成Warrning就可以完美运行了。