![](/img/trans.png)
[英]SingleBOdy cannot be resolved. It is indirectly referenced from required .class files
[英]java.nio.file.Path cannot be resolved. It is indirectly referenced from required .class files
我添加了软件包“ squareup.okhttp”,并得到上述错误。 真的不知道这是什么意思。
以下是“问题”选项卡中的代码和eclipse给出的错误。
@Override
public Source source(File file) throws FileNotFoundException {
return Okio.source(file);
}
java.nio.file.OpenOption cannot be resolved. It is indirectly referenced from required .class files FileSystem.java /myapp/src/com/squareup/okhttp/internal/io
我正在使用JDK 1.6。 在我的代码而不是jar中添加了okhttp2.5.0.jar的源代码。
请帮我解决这个问题。
我正在使用JDK 1.6
java.nio.file
包仅在Java 7中引入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.