解决办法:access restriction is not accessible due to restriction

解决办法:修改编译选项,步骤如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore即可。

 

你可能感兴趣的:(Android,Studio/Eclipse,JAVA)