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

Incompatibility with firestore 18.0.0 #13

Closed
mirdones opened this issue Jan 28, 2019 · 21 comments
Closed

Incompatibility with firestore 18.0.0 #13

mirdones opened this issue Jan 28, 2019 · 21 comments

Comments

@mirdones
Copy link

I updated firestore to version 18.0.0.

Now I am getting the following error:

java.lang.NoSuchMethodError: No virtual method set(Ljava/util/Map;Lcom/google/firebase/firestore/SetOptions;)Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/firestore/DocumentReference; or its super classes (declaration of 'com.google.firebase.firestore.DocumentReference'
at org.imperiumlabs.geofirestore.GeoFirestore.setLocation(GeoFirestore.java:128)

@tomergoldst
Copy link

Also have issues with version 18.0.0

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[
15.0.1], but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.github.imperiumlabs:[email protected]

@5nicolai
Copy link

5nicolai commented Feb 3, 2019

i hope this error will be fixed

@zoro238
Copy link

zoro238 commented Feb 17, 2019

same problem

@zoro238
Copy link

zoro238 commented Feb 19, 2019

what sloved ?

@zoro238
Copy link

zoro238 commented Feb 20, 2019

i am used version 18.0.1

@future-pirate-king
Copy link

this problem got resolved when I downgraded the firestore version to 17.1.2

@mirdones
Copy link
Author

this problem got resolved when I downgraded the firestore version to 17.1.2

That is not exactly solving the problem.

By the way, this library can work with Firestore up to 17.1.5

@zoro238
Copy link

zoro238 commented Feb 21, 2019

i tested same error with firestore version to 17.1.2 and 17.1.5

@future-pirate-king
Copy link

i tested same error with firestore version to 17.1.2 and 17.1.5

Share your app gradle configuration and the error you are facing.

@zoro238
Copy link

zoro238 commented Feb 22, 2019

apply plugin: 'com.android.application'

android {

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
compileSdkVersion 28
defaultConfig {
    applicationId "com.2.cvcvbb"
    minSdkVersion 19
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.github.imperiumlabs:GeoFirestore-Android:v1.1.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:1.0.0'
implementation 'com.firebase:geofire-android:2.3.1'
implementation 'com.google.firebase:firebase-database:16.0.6'
implementation 'com.google.firebase:firebase-firestore:16.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
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'
}
apply plugin: 'com.google.gms.google-services'

@zoro238
Copy link

zoro238 commented Feb 22, 2019

and error

///'
Now I am getting the following error:

java.lang.NoSuchMethodError: No virtual method set(Ljava/util/Map;Lcom/google/firebase/firestore/SetOptions;)Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/firestore/DocumentReference; or its super classes (declaration of 'com.google.firebase.firestore.DocumentReference'
at org.imperiumlabs.geofirestore.GeoFirestore.setLocation(GeoFirestore.java:128)

@AngaKoko
Copy link

AngaKoko commented Apr 3, 2019

I still get the error when I try removing GeoFirestore location using removeLocation("itemId") methos

@nminhanh-git
Copy link

I have this error with Firestore version 18.2.0 when using setLocation method

@amitbd1508
Copy link

downgrade to 17.1.5 solved my problem.

@KelvinPac
Copy link

Is there no fix for this since January? Is the library still maintained?

@AngaKoko
Copy link

AngaKoko commented May 13, 2019 via email

@scm573
Copy link

scm573 commented May 17, 2019

I think the incompatibility issue should has been resolved already.
Try v1.2.0 or v1.2.1. (Currently the build of v1.3.0 is failing so you cannot import that version from JitPack directly: #23)

@KelvinPac
Copy link

KelvinPac commented May 17, 2019 via email

@ParryPatel021
Copy link

I think the incompatibility issue should has been resolved already.
Try v1.2.0 or v1.2.1. (Currently the build of v1.3.0 is failing so you cannot import that version from JitPack directly: #23)

This has resolved my problem by changing the version 1.2.1 as @scm573 told

@Supercaly
Copy link
Collaborator

This problem is present only in older versions of the library and is caused by depending in an older version of Firestore, this issue is solved using a version newer than v1.2.1.
Follow the README.MD to import the current stable version of the library

@mirmahfuz99
Copy link

upgrade to 19.0.0 solved my problem.

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

No branches or pull requests