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

'Ambiguous overloads found' exception when closing Google sign-in screen #127

Open
cdecron opened this issue Nov 15, 2023 · 3 comments
Open

Comments

@cdecron
Copy link

cdecron commented Nov 15, 2023

Hello,
On a device, when trying to access Drive API for the first time, Google sign-in screen is shown.
On Android, if I close this screen, I have an exception:

Ambiguous overloads found for onAuthorizationResponse with given parameters
UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0 
at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.IntPtr javaArgs) [0x00000] in <00000000000000000000000000000000>:0 
at UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod (UnityEngine.AndroidJavaProxy proxy, System.IntPtr jmethodName, System.IntPtr jargs) [0x00000] in <00000000000000000000000000000000>:0 
Error Unity Rethrow as TargetInvocationException: UnityGoogleDrive.AndroidAccessTokenProvider+OnAuthorizationResponseListener.onAuthorizationResponse(System.Boolean,null,System.String,System.String,System.String)
Error Unity   at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0 
Error Unity   at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.IntPtr javaArgs) [0x00000] in <00000000000

Maybe somebody has some insights about this?
Thank you

@elringus
Copy link
Owner

@elringus
Copy link
Owner

elringus commented Nov 16, 2023

I've purged all the java stuff from my machine long time ago; if anyone is able to edit the interface and validate it's working on android, please send a PR. I've merged the sources for android auth lib to this repo for convenience: https://github.com/elringus/unity-google-drive/tree/main/Android

@cdecron
Copy link
Author

cdecron commented Nov 19, 2023

Thank you, i'll wait for the code to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants