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

EntryPointNotFoundException: GoogleSignIn_Create assembly:<unknown assembly> type:<unknown type> member:(null) #232

Open
ChurikiTenna opened this issue May 29, 2023 · 3 comments

Comments

@ChurikiTenna
Copy link

ChurikiTenna commented May 29, 2023

google-signin-unity version: latest
unity: 2022.2.0b11
Editing on Mac

Code:

public void SignInGoogle() {
        // Google SignInの設定
        GoogleSignIn.Configuration = new GoogleSignInConfiguration {
            RequestIdToken = true,
            // Copy this value from the google-service.json file.
            // oauth_client with type == 3
            WebClientId = GoogleClientId
        };
        Task<GoogleSignInUser> signIn = GoogleSignIn.DefaultInstance.SignIn();

        signIn.ContinueWith (task => {
            if (task.IsCanceled) {
                Debug.Log("GoogleSignIn was canceled.");
            } else if (task.IsFaulted) {
                Debug.Log("GoogleSignIn was error.");
            } else {
                Credential credential = Firebase.Auth.GoogleAuthProvider.GetCredential(((Task<GoogleSignInUser>)task).Result.IdToken, null);
                SignInOrLinkCredentialAsync(credential);
            }
        });
    }

When running with iOS build setting, this error occur.

EntryPointNotFoundException: GoogleSignIn_Create assembly:<unknown assembly> type:<unknown type> member:(null)
Google.Impl.GoogleSignInImpl..ctor (Google.GoogleSignInConfiguration configuration) (at Assets/GoogleSignIn/Impl/GoogleSignInImpl.cs:31)
Google.GoogleSignIn.get_DefaultInstance () (at Assets/GoogleSignIn/GoogleSignIn.cs:91)
FirebaseManager.SignInGoogle () (at Assets/Scenes/LogInScripts/FirebaseManager.cs:367)

When running on Android build setting, this error occur.

Exception: Field currentActivity or type signature  not found
UnityEngine._AndroidJNIHelper.GetFieldID (System.IntPtr jclass, System.String fieldName, System.String signature, System.Boolean isStatic) (at /Users/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJava.cs:1621)
UnityEngine.AndroidJNIHelper.GetFieldID (System.IntPtr javaClass, System.String fieldName, System.String signature, System.Boolean isStatic) (at /Users/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJNI.bindings.cs:91)
UnityEngine._AndroidJNIHelper.GetFieldID[ReturnType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at /Users/bokken/build/output/unity/unity/Modules/AndroidJNI/AndroidJava.cs:1534)
UnityEngine.AndroidJNIHelper.GetFieldID[FieldType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at ...
@VanIseghemThomas
Copy link

Same problem, seems that the problem lies at calling

GoogleSignIn.DefaultInstance.SignIn()

@ChurikiTenna
Copy link
Author

@claywilkinson
The package is last updated in 2018. Isn't new plugin coming up??

@claywilkinson
Copy link
Contributor

Hi @ChurikiTenna, Unfortunately, I have moved to other projects which do not intersect with Unity any longer, so I don't have any insight into plans or maintenance of this project.

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

3 participants