繁体   English   中英

java.nio.file.Path无法解析。 从所需的.class文件间接引用它

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM