Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bolts conflicts #1036

Closed
rlatapy-luna opened this issue Jun 18, 2020 · 6 comments · Fixed by parse-community/ParseLiveQuery-Android#111
Closed

Bolts conflicts #1036

rlatapy-luna opened this issue Jun 18, 2020 · 6 comments · Fixed by parse-community/ParseLiveQuery-Android#111

Comments

@rlatapy-luna
Copy link

rlatapy-luna commented Jun 18, 2020

Hello, I'm using https://github.com/parse-community/Parse-SDK-Android + https://github.com/parse-community/ParseLiveQuery-Android + https://github.com/BoltsFramework/Bolts-Android

I tried to update these 3 dependencies but I got a runtime error (with respective versions 1.24.2, 1.2.0 & 1.4.0). I did not find any workaround, should I move from Bolts-Android to parse's internal bolts?

    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/~~vl-z29yK_GYHloVpqsw9dg==/studio.lunabee.lunabeelibrairies-VGje_wxj3G1TZHAYdU6ZTQ==/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$1.onResponse(RealWebSocket.java:208)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)
@mtrezza
Copy link
Member

mtrezza commented Jun 18, 2020

Hi @rlatapy-luna, thanks for reporting. I assume you are only getting this error with Parse SDK 1.24.2 and not if you downgrade to 1.24.1, correct?

@Jawnnypoo can you please add me as collab also for the LiveQuery SDK? This issue should be transferred to the other repo.

@mtrezza
Copy link
Member

mtrezza commented Jun 18, 2020

Issue likely a result of #1033

@rlatapy-luna
Copy link
Author

rlatapy-luna commented Jun 18, 2020

Hi @rlatapy-luna, thanks for reporting. I assume you are only getting this error with Parse SDK 1.24.2 and not if you downgrade to 1.24.1, correct?

I had to go back to parse SDK 1.23.1 and liveQuery 1.1.0 to get it works. With 1.24.1, I'm not able to build because of collisions with Bolts.
I can tried to reproduce in a smaller project if you need. Thanks!

@mtrezza
Copy link
Member

mtrezza commented Jun 18, 2020

@rlatapy-luna Can you try to use parse-community/ParseLiveQuery-Android@14a90b4 with Parse-SDK-Android 1.24.2 and see if it works?

@rlatapy-luna
Copy link
Author

@mtrezza I cannot fetch com.github.parse-community:ParseLiveQuery-Android:14a90b4 🤔 (Failed to resolve). I don't why sorry, is it working on your side?

@mtrezza
Copy link
Member

mtrezza commented Jun 18, 2020

You can try this for debugging, just remember to change it back because the branch will get deleted soon.

implementation "com.github.mtrezza:ParseLiveQuery-Android:change-dependency-to-bolts-internal-SNAPSHOT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants