https://kotlinlang.org logo
Title
c

Colton Idle

02/08/2023, 4:29 PM
It's possible to use apollo3 and an older version of apollo in the same app, right?
b

bod

02/08/2023, 4:30 PM
yes, they are in separate packages
c

Colton Idle

02/08/2023, 4:32 PM
Interesting. I'm trying to write a query today in an existing project and I get this error on
query
Cannot access 'java.io.Closeable' which is a supertype of 'com.apollographql.apollo3.ApolloClient'. Check your module classpath for missing or conflicting dependencies
Yesterday, when i was experimenting with apollo3 in a new project, i had no issues. so im confused on what the issue could be. hmmmm....
m

mbonnin

02/08/2023, 4:33 PM
Is that in your IDE or at build time? I've seen this in the IDE if the project SDK doesn't match... something
c

Colton Idle

02/08/2023, 4:35 PM
Its in my IDE
m

mbonnin

02/08/2023, 4:37 PM
Tweak your project settings until it works
THere are a bunch of YouTracks (like this one) but it's unclear if this was fixed (looks like it's not)
c

Colton Idle

02/08/2023, 4:50 PM
oh. it seems like my code compiles. its just the IDE...
w

wasyl

02/08/2023, 5:02 PM
There’s a workaround that used to work in Android Studio, maybe it’ll help you too https://issuetracker.google.com/issues/213131387
Specifically
Removing the
options/jdk.table.xml
file, located in
~/Library/Application Support/Google/AndroidStudioPreview20XX.X/options/jdk.table.xml
on macOS, while Android Studio is not open fixes the issue, which no longer appears after opening Android Studio back after that.
c

Colton Idle

02/08/2023, 5:47 PM
That did the trick! Thanks @wasyl!!!
w

wasyl

02/08/2023, 5:54 PM
Am I missing something? The issue you pasted is Giraffe hanging, is that related to the missing classpath error?
Also, giraffe canary 2 hanging is a known issue canary 3 should be fine
c

Colton Idle

02/08/2023, 7:15 PM
Whoops. posted that msg+link in the wrong thread. deleting that message