Closed GambitDev closed 2 years ago
@GambitDev Did you figure out a workaround for this?
@gavingt Yeah there is definitely a bug in this library Apparently as I thought this class was removed from the grpc libraries So we have to use an older version for this class to exist.. Changing this:
implementation 'io.grpc:grpc-okhttp:1.43.0'
implementation 'io.grpc:grpc-stub:1.43.0'
to this:
implementation 'io.grpc:grpc-okhttp:1.41.0'
implementation 'io.grpc:grpc-stub:1.41.0'
Solved it for me I have to note that it is extremely discouraging to find a bug like this in an official google library, Especially when I get no replies for nearly 2 months on such a critical issue
I came to the same conclusion. Actually, 1.42.2
seems to be the most recent working version.
EDIT: For some reason, 1.42.2 no longer works for me. 1.41.0 is indeed the way to go.
This issue is actually related to some underlying dependencies and the GRPC-java API library we use - there have been some changes in the grpc
and gax
libraries that caused this to break.
For now, please use the io.grpc
dependencies and versions as specified for this library.
We already have an update in the works that will address this and some other related issues shortly. Thank you for your patience!
This has been addressed in c3a35d77cdc9eb1c8f175a67588b73197a273f03 - we are aiming to roll this into a new release shortly.
If you are using the Java Google OAuth Library with HTTP features to obtain credentials, you will also need to specify this now explicitly as a dependency in your project.
We have released version 1.7.2, which includes a fix for this issue and updated dependencies.
Please reopen this issue if you are still seeing this error after upgrading your dependency. Thanks!
Hi I have encountered a very strange crash while using this library, trying to create a client using
PhotosLibraryClient.initialize(clientSettings)
crashes the app with the following stack (I have removed paths mentioned in it and changed my package name)After digging a bit into it, it seems that the CallCredentials2 class does not exists. From the source code:
After a quick google search of this missing class I found this link to it's docs: https://www.javadoc.io/static/io.grpc/grpc-api/1.25.0/io/grpc/CallCredentials2.html where it is stated that
THIS CLASS NAME IS TEMPORARY and is part of a migration. This class will BE DELETED as it replaces CallCredentials in short-term. THIS CLASS IS ONLY REFERENCED BY IMPLEMENTIONS. All consumers should be always referencing CallCredentials.
Is it possible that this actually happened? that
CallCredentials2
does not exist anymore and the photo library is still attempting to use it?I'm using version 1.7.1 of the photos library, and this is the way I attempt to create the client:
this is the part I think is relevant from my app's build dependency block:
Could it be something else? How can I go about fixing this issue? I would be happy to share more code or information if needed
Thanks