EntryPointNotFoundException: GoogleSignIn_Create assembly:<unknown assembly> type:<unknown type> member:(null)
ChurikiTenna opened this issue · 3 comments
ChurikiTenna commented
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 commented
Same problem, seems that the problem lies at calling
GoogleSignIn.DefaultInstance.SignIn()
ChurikiTenna commented
@claywilkinson
The package is last updated in 2018. Isn't new plugin coming up??
claywilkinson commented
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.