firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.25k stars 572 forks source link

DllNotFoundException: Unable to load DLL 'FirebaseCppApp-12_1_0' #6170

Closed ClairePeta-36 closed 1 month ago

ClairePeta-36 commented 1 month ago

Describe your environment

Describe the problem

Exception: System.TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE.SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'FirebaseCppApp-12_0_0'. Tried the load the following dynamic libraries: Unable to load dynamic library 'FirebaseCppApp-12_0_0' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "FirebaseCppApp-12_0_0" not found

DllNotFoundException: Unable to load DLL 'FirebaseCppApp-12_0_0'. Tried the load the following dynamic libraries: Unable to load dynamic library 'FirebaseCppApp-12_0_0' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "FirebaseCppApp-12_0_0" not found

Steps to reproduce:

We are in the process of updating out app to unity 2022.3.35f1 We updated our firebase version from 9.1.0 to 12.1.0. while the build succeeds, on arriving to the home screen we get the above errors. We have done some research into others who have faced this problem however none of their fixes have worked for us

Attempted Resolutions:

google-oss-bot commented 1 month ago

I found a few problems with this issue:

lehcar09 commented 1 month ago

Hi @ClairePeta-36, thank you for reaching out. The Firebase Android SDK repository handles issues related to native Android . To get better help, I suggest filing the issue in the Firebase Unity SDK. Thanks!