okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

The type java.time.Duration cannot be resolved when using Java 7

Open realizm opened this issue 5 years ago • 3 comments

It's not Eclipse problem. I compile my project the compiler does not throw any error, too. but in runtime, throw java.lang.Error: Unresolved compilation problem:

I used java 1.7.0_21, okhttp3 3.12.12, okio 1.15.0

Originally posted by @realizm in https://github.com/square/okhttp/issues/6547#issuecomment-783928964

realizm avatar Feb 23 '21 05:02 realizm

It's not Eclipse problem. I compile my project the compiler does not throw any error, too. but in runtime, throw java.lang.Error: Unresolved compilation problem:

I used java 1.7.0_21, okhttp3 3.12.12, okio 1.15.0

Originally posted by @realizm in #6547 (comment)

adr31 avatar Feb 23 '21 06:02 adr31

It's not Eclipse problem. I compile my project the compiler does not throw any error, too. but in runtime, throw java.lang.Error: Unresolved compilation problem:

I used java 1.7.0_21, okhttp3 3.12.12, okio 1.15.0

Originally posted by @realizm in #6547 (comment)

change to okhttp3 3.11.0, okio 1.14.0 It's work.

realizm avatar Feb 23 '21 06:02 realizm

Sounds like it's working after a version change.

yschimke avatar Mar 06 '21 15:03 yschimke