quickstart-unity icon indicating copy to clipboard operation
quickstart-unity copied to clipboard

DllNotFoundException: FirebaseCppApp-9_5_0

Open BadranRaza opened this issue 3 years ago • 3 comments

DllNotFoundException: FirebaseCppApp-9_5_0

BadranRaza avatar Sep 17 '22 06:09 BadranRaza

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Sep 17 '22 06:09 google-oss-bot

I am working on Windows 10 building my game for android and I am facing this issue:

DllNotFoundException: FirebaseCppApp-9_5_0 Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:3909) Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. Firebase.AppUtilPINVOKE..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:3929) Rethrow as TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception. Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4636) Firebase.LogUtil..ctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:81) Firebase.LogUtil..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:37) Rethrow as TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception. Firebase.FirebaseApp..cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:1897) Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception. AnalyticsHandler.Awake () (at Assets/AdsScripts/AnalyticsHandler.cs:18)

I am using unity 2020.3.38 I have tried reimporting, deleting Firebase from the project then importing again also I have tried deleting the library folder nothing helped me.

Does anyone have solutions for windows OS.

BadranRaza avatar Sep 17 '22 07:09 BadranRaza

Hi @BadranRaza,

Thanks for reporting this issue. Could you confirm if the device you're working on makes use of an updated C++ Redistributable? Also, does the error message appear when playing the Unity editor or running the Android build (or both)?

paulinon avatar Sep 19 '22 09:09 paulinon

the error appears on both devices but the issue has been resolved by installing https://all-in-one-runtimes.updatestar.com/en

BadranRaza avatar Sep 23 '22 07:09 BadranRaza