Parse Live Query

I am following the Tutorial “https://www.back4app.com/docs/android/live-query” line for line and still getting the error below. What am I doing wrong?

2020-07-01 17:28:26.234 24578-24578/com.example.livequery I/Success: We Logged in
2020-07-01 17:28:26.685 24578-24614/com.example.livequery V/ParseLiveQueryClient: Socket opened
2020-07-01 17:28:26.686 24578-24614/com.example.livequery E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: com.example.livequery, PID: 24578
java.lang.NoSuchMethodError: No static method getCurrentSessionTokenAsync()Lbolts/Task; in class Lcom/parse/ParseUser; or its super classes (declaration of ‘com.parse.ParseUser’ appears in /data/app/com.example.livequery-FZKCiJuVZuSXDMeAW_csaw==/base.apk)
at com.parse.livequery.ParseLiveQueryClientImpl$4.onOpen(ParseLiveQueryClientImpl.java:385)
at com.parse.livequery.OkHttp3SocketClientFactory$OkHttp3WebSocketClient$1.onOpen(OkHttp3SocketClientFactory.java:48)
at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:180)
at okhttp3.RealCall$AsyncCall.run(RealCall.kt:138)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2020-07-01 17:28:27.087 24578-24618/com.example.livequery D/EGL_emulation: eglMakeCurrent: 0xadd32a00: ver 3 0 (tinfo 0xa4644870)

Issue Resolved.

used - implementation “com.github.parse-community.Parse-SDK-Android:parse:1.18.5”
implementation ‘com.github.parse-community:ParseLiveQuery-Android:1.1.0’

instead of - implementation “com.github.parse-community.Parse-SDK-Android:parse:1.24.2”
implementation ‘com.github.parse-community:ParseLiveQuery-Android:1.1.0’

1 Like

Hey, I’ve solved using : implementation ‘com.github.parse-community:ParseLiveQuery-Android:1.2.2’
instead of the com.github.parse-community:ParseLiveQuery-Android:1.1.0

Seems to work now