-
Notifications
You must be signed in to change notification settings - Fork 614
Firestore tests fail in Android Studio #108
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
Comments
@iamyaoxi Do you think you can help us track down and fix this issue ? |
This avoids the dependency on Guava 25.1 which causes tests run through Android Studio to fail. Fixes #108.
This avoids the dependency on Guava 25.1 which causes tests run through Android Studio to fail. Fixes #108.
After pulling in the new change, I had to delete my AS project and re-import the gradle project to make the issue go away |
Do you think its related to some bugs in AS perhaps? |
It does seem to be a bug in AS. Some details I found:
Now when the test classpath is resolved by gradle it notices the version difference and only adds the latest one onto the classpath. But when AS runs the tests I can see that both versions of guava are present on the classpath with 20 being first, hence it is picked up by the class loader. |
@schmidt-sebastian noticed yesterday that the firebase-firestore tests fail when run from AS, but not from cli.
I have been able to repro the issue. Initially, I had 17 tests failing in AS, but recreating the AS project brought that down to 5.
It seems related to the issue described here [https://github.com/google/truth/issues/466] which is relevant after the upgrades we got to libraries via @iamyaoxi 's PR #73.
The text was updated successfully, but these errors were encountered: