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

Google Sign In Error When AdMob Added #203

Open
ogrnurullahcelik opened this issue Dec 4, 2021 · 0 comments
Open

Google Sign In Error When AdMob Added #203

ogrnurullahcelik opened this issue Dec 4, 2021 · 0 comments

Comments

@ogrnurullahcelik
Copy link

I am trying to sign in with google.
using this package after imported Google Admob.

2021-12-04 17:01:59.692 23995-24027/? A/llah.HooperTes: java_vm_ext.cc:577] JNI DETECTED ERROR IN APPLICATION: mid == null java_vm_ext.cc:577] in call to CallStaticVoidMethodV java_vm_ext.cc:577] from boolean com.unity3d.player.UnityPlayer.nativeRender() 2021-12-04 17:01:59.895 23995-24027/? A/llah.HooperTes: runtime.cc:655] Runtime aborting... runtime.cc:655] Dumping all threads without mutator lock held runtime.cc:655] All threads: runtime.cc:655] DALVIK THREADS (35): runtime.cc:655] "UnityMain" prio=5 tid=22 Runnable runtime.cc:655] | group="" sCount=0 dsCount=0 flags=0 obj=0x13c80ce0 self=0xdc808a00 runtime.cc:655] | sysTid=24027 nice=0 cgrp=default sched=0/0 handle=0xc4eb41c0 runtime.cc:655] | state=R schedstat=( 1287053103 241630840 1264 ) utm=98 stm=29 core=6 HZ=100 runtime.cc:655] | stack=0xc4db1000-0xc4db3000 stackSize=1040KB runtime.cc:655] | held mutexes= "abort lock" "mutator lock"(shared held) runtime.cc:655] native: #00 pc 00362965 /apex/com.android.art/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+76) runtime.cc:655] native: #01 pc 0042f595 /apex/com.android.art/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+392) runtime.cc:655] native: #02 pc 0042acef /apex/com.android.art/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+34) runtime.cc:655] native: #03 pc 004482b1 /apex/com.android.art/lib/libart.so (art::DumpCheckpoint::Run(art::Thread*)+692) runtime.cc:655] native: #04 pc 0044359f /apex/com.android.art/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+358) runtime.cc:655] native: #05 pc 004429a5 /apex/com.android.art/lib/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)+1552) runtime.cc:655] native: #06 pc 003ee427 /apex/com.android.art/lib/libart.so (art::Runtime::Abort(char const*)+1542) runtime.cc:655] native: #07 pc 0000d741 /system/lib/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+48) runtime.cc:655] native: #08 pc 0000d11b /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+226) runtime.cc:655] native: #09 pc 00283fe9 /apex/com.android.art/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1976) runtime.cc:655] native: #10 pc 00008d5b /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libnative-googlesignin.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+42) runtime.cc:655] native: #11 pc 00008fd7 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libnative-googlesignin.so (googlesignin::GoogleSignIn::GoogleSignInImpl::CallConfigure()+386) runtime.cc:655] native: #12 pc 000084a7 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libnative-googlesignin.so (GoogleSignIn_Configure+310) runtime.cc:655] native: #13 pc 00001dc2 <anonymous:ba107000> (???) runtime.cc:655] at com.unity3d.player.UnityPlayer.nativeRender(Native method) runtime.cc:655] at com.unity3d.player.UnityPlayer.access$300(:-1) runtime.cc:655] at com.unity3d.player.UnityPlayer$e$1.handleMessage(:-1) runtime.cc:655] at android.os.Handler.dispatchMessage(Handler.java:102) runtime.cc:655] at android.os.Looper.loop(Looper.java:236) runtime.cc:655] at com.unity3d.player.UnityPlayer$e.run(:-1) runtime.cc:655] runtime.cc:655] "main" prio=10 tid=1 Native runtime.cc:655] | group="" sCount=1 dsCount=0 flags=1 obj=0x7277b7c0 self=0xf44eee00 runtime.cc:655] | sysTid=23995 nice=-10 cgrp=default sched=0/0 handle=0xf4a3f470 runtime.cc:655] | state=S schedstat=( 311066042 103000827 433 ) utm=24 stm=6 core=6 HZ=100 runtime.cc:655] | stack=0xff762000-0xff764000 stackSize=8192KB runtime.cc:655] | held mutexes= runtime.cc:655] native: #00 pc 000a1720 /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20) runtime.cc:655] native: #01 pc 00071035 /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16) 2021-12-04 17:01:59.895 23995-24027/? A/llah.HooperTes: runtime.cc:655] | sysTid=24072 nice=0 cgrp=default sched=0/0 handle=0xbf2eb1c0 runtime.cc:655] | state=S schedstat=( 412759 10620157 2 ) utm=0 stm=0 core=6 HZ=100 runtime.cc:655] | stack=0xbf1e8000-0xbf1ea000 stackSize=1040KB runtime.cc:655] | held mutexes= runtime.cc:655] native: #00 pc 000a1720 /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20) runtime.cc:655] native: #01 pc 00071035 /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16) runtime.cc:655] native: #02 pc 00011a21 /system/lib/libutils.so (android::Looper::pollInner(int)+124) runtime.cc:655] native: #03 pc 0001194b /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+62) runtime.cc:655] native: #04 pc 000bf2bd /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+26) runtime.cc:655] at android.os.MessageQueue.nativePollOnce(Native method) runtime.cc:655] at android.os.MessageQueue.next(MessageQueue.java:335) runtime.cc:655] at android.os.Looper.loop(Looper.java:193) runtime.cc:655] at android.os.HandlerThread.run(HandlerThread.java:67) runtime.cc:655] runtime.cc:655] "AudioTrack" prio=10 tid=32 Native runtime.cc:655] | group="" sCount=1 dsCount=0 flags=1 obj=0x13c82e70 self=0xd478dc00 runtime.cc:655] | sysTid=24073 nice=-16 cgrp=default sched=1073741825/2 handle=0xbf1c51c0 runtime.cc:655] | state=S schedstat=( 84274511 9681414 1091 ) utm=8 stm=0 core=6 HZ=100 runtime.cc:655] | stack=0xbf0ca000-0xbf0cc000 stackSize=1008KB runtime.cc:655] | held mutexes= runtime.cc:655] native: #00 pc 00060d28 /apex/com.android.runtime/lib/bionic/libc.so (syscall+28) runtime.cc:655] native: #01 pc 000511d7 /system/lib/libaudioclient.so (android::ClientProxy::obtainBuffer(android::Proxy::Buffer*, timespec const*, timespec*)+538) runtime.cc:655] native: #02 pc 0004b403 /system/lib/libaudioclient.so (android::AudioTrack::obtainBuffer(android::AudioTrack::Buffer*, timespec const*, timespec*, unsigned int*)+258) runtime.cc:655] native: #03 pc 0004c2e1 /system/lib/libaudioclient.so (android::AudioTrack::processAudioBuffer()+1808) runtime.cc:655] native: #04 pc 0004e165 /system/lib/libaudioclient.so (android::AudioTrack::AudioTrackThread::threadLoop()+104) runtime.cc:655] native: #05 pc 0000eafb /system/lib/libutils.so (android::Thread::_threadLoop(void*)+174) runtime.cc:655] native: #06 pc 0006ed3f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+86) runtime.cc:655] native: #07 pc 0000e63b /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+262) runtime.cc:655] native: #08 pc 000b0d11 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) runtime.cc:655] native: #09 pc 00066b41 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) runtime.cc:655] (no managed stack frames) runtime.cc:655] runtime.cc:655] "UnityChoreographer" prio=6 tid=33 Native runtime.cc:655] | group="" sCount=1 dsCount=0 flags=1 obj=0x13cfb328 self=0xd44da600 runtime.cc:655] | sysTid=24088 nice=-2 cgrp=default sched=0/0 handle=0xb927e1c0 runtime.cc:655] | state=S schedstat=( 42177601 30750632 127 ) utm=2 stm=1 core=7 HZ=100 runtime.cc:655] | stack=0xb917b000-0xb917d000 stackSize=1040KB runtime.cc:655] | held mutexes= runtime.cc:655] native: #00 pc 00060d28 /apex/com.android.runtime/lib/bionic/libc.so (syscall+28) runtime.cc:655] native: #01 pc 00127ec1 /apex/com.android.art/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+88) runtime.cc:655] native: #02 pc 002987f3 /apex/com.android.art/lib/libart.so (art::JNI<false>::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+410) runtime.cc:655] native: #03 pc 00003681 /apex/com.android.art/lib/libnativehelper.so (_JNIEnv::CallObjectMethod(_jobject*, _jmethodID*, ...)+28) 2021-12-04 17:01:59.895 23995-24027/? A/llah.HooperTes: runtime.cc:655] | held mutexes= runtime.cc:655] native: #00 pc 00060d2c /apex/com.android.runtime/lib/bionic/libc.so (syscall+32) runtime.cc:655] native: #01 pc 00065edb /apex/com.android.runtime/lib/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+94) runtime.cc:655] native: #02 pc 000b02cd /apex/com.android.runtime/lib/bionic/libc.so (pthread_cond_timedwait+76) runtime.cc:655] native: #03 pc 00423cc8 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (mono_os_cond_timedwait+344) runtime.cc:655] native: #04 pc 00283f84 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (???) runtime.cc:655] native: #05 pc 00283bd0 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (???) runtime.cc:655] native: #06 pc 00283548 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (???) runtime.cc:655] native: #07 pc 0039f204 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (???) runtime.cc:655] native: #08 pc 0039ee50 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (???) runtime.cc:655] native: #09 pc 0047a57c /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (GC_inner_start_routine+108) runtime.cc:655] native: #10 pc 00474cc4 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (GC_call_with_stack_base+52) runtime.cc:655] native: #11 pc 0047a0c8 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libmonobdwgc-2.0.so (GC_start_routine+40) runtime.cc:655] native: #12 pc 000b0d11 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) runtime.cc:655] native: #13 pc 00066b41 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) runtime.cc:655] (no managed stack frames) runtime.cc:655] runtime.cc:655] Aborting thread: runtime.cc:655] "UnityMain" prio=5 tid=22 Native runtime.cc:655] | group="" sCount=0 dsCount=0 flags=0 obj=0x13c80ce0 self=0xdc808a00 runtime.cc:655] | sysTid=24027 nice=0 cgrp=default sched=0/0 handle=0xc4eb41c0 runtime.cc:655] | state=R schedstat=( 1395236120 247396360 1363 ) utm=107 stm=32 core=7 HZ=100 runtime.cc:655] | stack=0xc4db1000-0xc4db3000 stackSize=1040KB runtime.cc:655] | held mutexes= "abort lock" runtime.cc:655] native: #00 pc 00362965 /apex/com.android.art/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+76) runtime.cc:655] native: #01 pc 0042f595 /apex/com.android.art/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+392) runtime.cc:655] native: #02 pc 0042acef /apex/com.android.art/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+34) runtime.cc:655] native: #03 pc 003fd66b /apex/com.android.art/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const+30) runtime.cc:655] native: #04 pc 003ee5e1 /apex/com.android.art/lib/libart.so (art::Runtime::Abort(char const*)+1984) runtime.cc:655] native: #05 pc 0000d741 /system/lib/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+48) runtime.cc:655] native: #06 pc 0000d11b /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+226) 2021-12-04 17:01:59.895 23995-24027/? A/llah.HooperTes: runtime.cc:655] native: #07 pc 00283fe9 /apex/com.android.art/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1976) runtime.cc:655] native: #08 pc 00008d5b /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libnative-googlesignin.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+42) runtime.cc:655] native: #09 pc 00008fd7 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libnative-googlesignin.so (googlesignin::GoogleSignIn::GoogleSignInImpl::CallConfigure()+386) runtime.cc:655] native: #10 pc 000084a7 /data/app/~~pZkXu23SXZ8bWuOuT4LELw==/com.nurullah.HooperTest-AyMMrFMBaKBLB7zQyZV6Gg==/lib/arm/libnative-googlesignin.so (GoogleSignIn_Configure+310) runtime.cc:655] native: #11 pc 00001dc2 <anonymous:ba107000> (???) runtime.cc:655] at com.unity3d.player.UnityPlayer.nativeRender(Native method) runtime.cc:655] at com.unity3d.player.UnityPlayer.access$300(:-1) runtime.cc:655] at com.unity3d.player.UnityPlayer$e$1.handleMessage(:-1) runtime.cc:655] at android.os.Handler.dispatchMessage(Handler.java:102) runtime.cc:655] at android.os.Looper.loop(Looper.java:236) runtime.cc:655] at com.unity3d.player.UnityPlayer$e.run(:-1) runtime.cc:655] 2021-12-04 17:01:59.895 23995-24027/? A/llah.HooperTes: runtime.cc:663] JNI DETECTED ERROR IN APPLICATION: mid == null runtime.cc:663] in call to CallStaticVoidMethodV runtime.cc:663] from boolean com.unity3d.player.UnityPlayer.nativeRender() 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: pid: 23995, tid: 24027, name: UnityMain >>> com.nurullah.HooperTest <<< 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #05 UnityEngine.Events.InvokableCall:Invoke () <0x3b> 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #06 UnityEngine.Events.UnityEvent:Invoke () <0xc7> 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #07 UnityEngine.UI.Button:Press () <0x5b> 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #08 UnityEngine.UI.Button:OnPointerClick (UnityEngine.EventSystems.PointerEventData) <0x27> 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #09 UnityEngine.EventSystems.ExecuteEvents:Execute (UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.BaseEventData) <0x3f> 2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #10 UnityEngine.EventSystems.ExecuteEvents:Execute<T_REF> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction1<T_REF>) <0x25b>
2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #11 UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress (UnityEngine.EventSystems.PointerEventData,bool,bool) <0x383>
2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #12 UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents () <0x133>
2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #13 UnityEngine.EventSystems.StandaloneInputModule:Process () <0x4b>
2021-12-04 17:01:59.898 23995-24027/? E/CRASH: #14 UnityEngine.EventSystems.EventSystem:Update () <0x1df>
2021-12-04 17:02:01.273 23995-24027/? E/AndroidRuntime: FATAL EXCEPTION: UnityMain
Process: com.nurullah.HooperTest, PID: 23995
java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2019.4.8f1 (60781d942082)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
Build fingerprint: 'Xiaomi/davinci/davinci:11/RKQ1.200826.002/V12.1.4.0.RFJMIXM:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2021-12-04 17:01:59+0300
pid: 23995, tid: 24027, name: UnityMain >>> com.nurullah.HooperTest <<<
uid: 10399
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
r0 00000000 r1 00005ddb r2 00000006 r3 c4eb21e0
r4 c4eb21f4 r5 c4eb21d8 r6 00005dbb r7 0000016b
r8 c4eb21e0 r9 c4eb21f0 r10 c4eb2210 r11 c4eb2200
ip 00005ddb sp c4eb21b0 lr f37c2645 pc f37c2658

backtrace:
      #00 pc 00064658  /apex/com.android.runtime/lib/bionic/libc.so (prop_area::map_fd_ro(int)+20) (BuildId: 3516bc395829323390a814b64aaaf5a1)

managed backtrace:
      #00 (wrapper managed-to-native) Google.Impl.GoogleSignInImpl:GoogleSignIn_Configure (System.Runtime.InteropServices.HandleRef,bool,string,bool,bool,bool,bool,bool,string[],int,string)
      #01 Google.Impl.GoogleSignInImpl:.ctor (Google.GoogleSignInConfiguration) <0x12b>
      #02 Google.GoogleSignIn:get_DefaultInstance () <0x43>
      #03 GoogleSignInDemo:OnSignIn () <0x3f>
      #04 GoogleSignInDemo:SignInWithGoogle () <0x1f>
      #05 UnityEngine.Events.InvokableCall:Invoke () <0x3b>
      #06 UnityEngine.Events.UnityEvent:Invoke () <0xc7>
      #07 UnityEngine.UI.Button:Press () <0x5b>
      #08 UnityEngine.UI.Button:OnPointerClick (UnityEngine.EventSystems.PointerEventData) <0x27>
      #09 UnityEngine.EventSystems.ExecuteEvents:Execute (UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.BaseEventData) <0x3f>
      #10 UnityEngine.EventSystems.ExecuteEvents:Execute<T_REF> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<T_REF>) <0x25b>
      #11 UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress (UnityEngine.EventSystems.PointerEventData,bool,bool) <0x383>
      #12 UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents () <0x133>
      #13 UnityEngine.EventSystems.StandaloneInputModule:Process () <0x4b>
      #14 UnityEngine.EventSystems.EventSystem:Update () <0x1df>
      #15 (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)

    at libc.prop_area::map_fd_ro(int)(map_fd_ro:20)
    at Google.Impl.GoogleSignInImpl.GoogleSignIn_Configure (System.Runtime.InteropServices.HandleRef,bool,string,bool,bool,bool,bool,bool,string[],int,string)(Native Method)
    at Google.Impl.GoogleSignInImpl..ctor (Google.GoogleSignInConfiguration)(0x12b:299)
    at Google.GoogleSignIn.get_DefaultInstance ()(0x43:67)
    at GoogleSignInDemo.OnSignIn ()(0x3f:63)
    at GoogleSignInDemo.SignInWithGoogle ()(0x1f:31)
    at UnityEngine.Events.InvokableCall.Invoke ()(0x3b:59)
    at UnityEngine.Events.UnityEvent.Invoke ()(0xc7:199)
    at UnityEngine.UI.Button.Press ()(0x5b:91)
    at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData)(0x27:39)
    at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.BaseEventData)(0x3f:63)
    at UnityEngine.EventSystems.ExecuteEvents.Execute<T_REF> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<T_REF>)(0x25b:603)
    at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData,bool,bool)(0x383:899)
    at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents ()(0x133:307)
    at UnityEngine.EventSystems.StandaloneInputModule.Process ()(0x4b:75)
    at UnityEngine.EventSystems.EventSystem.Update ()(0x1df:479)
    at System.Object.runtime_invoke_void__this__ (object,intptr,intptr,intptr)(Native Method)

2021-12-04 17:02:01.470 903-903/? E/Layer: [Bounds for - com.nurullah.HooperTest/com.unity3d.player.UnityPlayerActivity#0] No local sync point found`

here is my sign in code

`using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Firebase;
using Firebase.Auth;
using Google;
using UnityEngine;
using UnityEngine.UI;

public class GoogleSignInDemo : MonoBehaviour
{
public Text infoText;
public string webClientId = "";

private FirebaseAuth auth;
private GoogleSignInConfiguration configuration;

private void Awake()
{
    configuration = new GoogleSignInConfiguration { WebClientId = webClientId, RequestEmail = true, RequestIdToken = true };
    AddToInformation(configuration.ToString());
    CheckFirebaseDependencies();
}

private void CheckFirebaseDependencies()
{
    FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
    {
        if (task.IsCompleted)
        {
            if (task.Result == DependencyStatus.Available)
                auth = FirebaseAuth.DefaultInstance;
            else
                AddToInformation("Could not resolve all Firebase dependencies: " + task.Result.ToString());
        }
        else
        {
            AddToInformation("Dependency check was not completed. Error : " + task.Exception.Message);
        }
    });
}

public void SignInWithGoogle() { try { OnSignIn(); } catch (Exception e) { AddToInformation(e.ToString()); } }
public void SignOutFromGoogle() { OnSignOut(); }

private void OnSignIn()
{
    GoogleSignIn.Configuration = configuration;
    GoogleSignIn.Configuration.UseGameSignIn = false;
    GoogleSignIn.Configuration.RequestIdToken = true;
    AddToInformation("Calling SignIn");

    GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnAuthenticationFinished);
}

private void OnSignOut()
{
    AddToInformation("Calling SignOut");
    GoogleSignIn.DefaultInstance.SignOut();
}

public void OnDisconnect()
{
    AddToInformation("Calling Disconnect");
    GoogleSignIn.DefaultInstance.Disconnect();
}

internal void OnAuthenticationFinished(Task<GoogleSignInUser> task)
{
    if (task.IsFaulted)
    {
        using (IEnumerator<Exception> enumerator = task.Exception.InnerExceptions.GetEnumerator())
        {
            if (enumerator.MoveNext())
            {
                GoogleSignIn.SignInException error = (GoogleSignIn.SignInException)enumerator.Current;
                AddToInformation("Got Error: " + error.Status + " " + error.Message);
            }
            else
            {
                AddToInformation("Got Unexpected Exception?!?" + task.Exception);
            }
        }
    }
    else if (task.IsCanceled)
    {
        AddToInformation("Canceled");
    }
    else
    {
        AddToInformation("Welcome: " + task.Result.DisplayName + "!");
        AddToInformation("Email = " + task.Result.Email);
        AddToInformation("Google ID Token = " + task.Result.IdToken);
        AddToInformation("Email = " + task.Result.Email);
        SignInWithGoogleOnFirebase(task.Result.IdToken);
    }
}

private void SignInWithGoogleOnFirebase(string idToken)
{
    Credential credential = GoogleAuthProvider.GetCredential(idToken, null);

    auth.SignInWithCredentialAsync(credential).ContinueWith(task =>
    {
        AggregateException ex = task.Exception;
        if (ex != null)
        {
            if (ex.InnerExceptions[0] is FirebaseException inner && (inner.ErrorCode != 0))
                AddToInformation("\nError code = " + inner.ErrorCode + " Message = " + inner.Message);
        }
        else
        {
            AddToInformation("Sign In Successful.");
        }
    });
}

public void OnSignInSilently()
{
    GoogleSignIn.Configuration = configuration;
    GoogleSignIn.Configuration.UseGameSignIn = false;
    GoogleSignIn.Configuration.RequestIdToken = true;
    AddToInformation("Calling SignIn Silently");

    GoogleSignIn.DefaultInstance.SignInSilently().ContinueWith(OnAuthenticationFinished);
}

public void OnGamesSignIn()
{
    GoogleSignIn.Configuration = configuration;
    GoogleSignIn.Configuration.UseGameSignIn = true;
    GoogleSignIn.Configuration.RequestIdToken = false;

    AddToInformation("Calling Games SignIn");

    GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnAuthenticationFinished);
}

private void AddToInformation(string str) { infoText.text += "\n" + str; }

}`

when I try not added Admob package it is working

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

1 participant