Question with live Query implementations

#1

Hello im trying to implement the live query following this https://www.back4app.com/docs/android/live-query

i am receiving this error

Error: Program type already present: com.parse.AuthenticationCallback
How can i solve this?
Can you please provide me with an updated way to use live query without using androidX?

#2

Are you using your own self hosted Parse Server or are you trying to implement it on a Parse Server hosted at Back4App? Could you share your current code?

#3

Hello davi . I see and manage my parse database in back4app and in adminca … i can share my code i against the companys policy.@davimacedo

#4

It is really hard to help here only knowing the error. It can be many different things. Could you please open a ticket at Back4App web-site? It will be easier for the supporting team to help you there.

#5

thanks for responce @davimacedo do you have an updated documentation on your end for parse live query and how to implement it?

#6

The link you sent should work for an Android app. You can also take a look in the guideline of the Parse Android Live Query offical repo:

#7

Nothing i did with the link worked.

#8

Have you tried the last link I sent you? Why don’t you write a simple separate code that you can share? I think it will be easier to help you on that.

1 Like
#9

@davimacedo thank you for responce at the moment im working on a query im stuck on ill be posting the question in this forum and later check on this i tell you i am using:

implementation ‘com.github.parse-community:ParseLiveQuery-Android:1.1.0’

#10

Hello i was ready the github project and i added the dependency but it doesnt work :frowning:

#11

It doesn’t seem to be anything related to the LiveQuery but to your dependencies. I see some duplicated dependencies, two versions of android sdk and I can’t see the android live query. Here is an example of dependencies that should work with AndroidX and Live Query.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:27.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation "com.github.parse-community.Parse-SDK-Android:parse:1.20.0"
    implementation 'com.github.parse-community:ParseLiveQuery-Android:1.1.0'
}

Can you please take a look and review yours?

1 Like
#12

hello @davimacedo is there any way to use it without android x??? android x messes my project for example Fragment class doesnt exist for android x.

#13

Yes. You can. Try to change this line here:

implementation "com.github.parse-community.Parse-SDK-Android:parse:1.18.5"
1 Like
#14

Hey @franquicidad

There looks to be some confusion on what you are trying to achieve. Parse Android SDK will work regardless of AndroidX and just to be clear, fragments still exist in AndroidX

import androidx.fragment.app.Fragment;

1 Like
#15

Worked perfect thanks a lot… can i post you questions about the query over here?

1 Like
#16

Code related questions are more likely to be posted in Stackoverflow but I’m happy to try to help if you have general questions here as well.

2 Likes