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
Trouble adding Google Services library on Android project with gRPC library #6217
Comments
We build your repo https://github.com/benz93chung/GrpcMvvm locally (not with Firebase console) and it was successful. Can you provide any reference to how to do the following?
|
Thanks for attending to the issue. However I am still having trouble with syncing even after explicitly adding errorprone as dependency. Have you applied the google services plugin at the end of the gradle file though? To provide a bit more info if it ever helps, I am using JDK 11.0.4 in my environment. In the meantime, I am finding out if it's just me since it worked for you. |
Yes, I added all the lines to app/gradle.build file as instructed while adding the app to firebase project. However, I found that my workaround is not reliable, most time it still fails. I'll take more look into the issue. |
Now I make a dirty hack, seems to work better. I don't know how a clean workaround would be yet.
|
Thank you once again. For now, the dirty hack works. |
Perfmark just had new release 0.19.0 which fixed its dependency range issue. Now we can have a much simpler workaround:
|
Resolves grpc#6217
Resolves grpc#6217
Resolves grpc#6217
The 1.24.1 release comments suggest that this should've been in 1.24.1, but the grpc-core POM shows 0.17.0 |
Thanks @bubenheimer for pointing it out. @creamsoup , the 1.24.1 release should mention the known issue and the workaround, instead of |
@dapengzhang0, yes i'll add that note. I thought it was back-ported since the 1.24.1 was released later than the other 2 patches. |
Dependency failing: io.grpc:grpc-auth:1.25.0 -> io.grpc:grpc-api@[1.25.0], but grpc-api version was 1.26.0. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
|
I found solution
and in root build.gradle |
Resolves grpc#6217
I was trying to add Firebase Analytics into my Android project with gRPC library, in which Google Services library is also to be added.
By simply setting up the app from the Firebase console, upon syncing I have gotten the following error:
I am using gRPC version 1.22.1.
Downgrading to 1.21.1 results in no such errors showing up again, but it is more of a workaround than a solution.
The problem occurs from 1.22.0 onwards to the latest version.
My hunch on why this happens is because of version disparity at errorprone at line 34 and line 188.
https://github.com/grpc/grpc-java/blob/v1.22.x/build.gradle
gRPC version:
1.22.1
Operating system:
macOS 10.14.6
Reproduction steps:
https://github.com/benz93chung/GrpcMvvm
Full stacktrace:
The text was updated successfully, but these errors were encountered: