-
Notifications
You must be signed in to change notification settings - Fork 428
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
DllNotFoundException: Unable to load DLL 'FirebaseCppApp-6_4_0' #466
Comments
Same issue is happening for me too. |
Same issue is happening 6.3.0 version. |
Hi SteliosDaVitzi, thanks for the bug report. Just to confirm the problem platform you are having the problem with is arm64-v8a? Looking at the Firebase 6.4.0 package it looks like all the files are there and are built for the correct platform. I will look into this a little more to try and work out what is going on. |
Hi!Thanks for the answer.We have the problem when building for arm7.Arm64 works fine.The dll that seems to be missing, exists within the files in unity editor (arm64 works fine with them), but for some reason arm7 can't see it. |
Have you tried running the android resolver as outlined in this other issue about the same problem: #362 |
Yes, I've already done three resolves until now(with different combinations of sdks), every time the error is the same. |
I had the same issue I was running my app on 2018 unity with 5.4.4 Firebase, I went to upgrade Firebase and Unity to the same mentioned versions above and got this error. FYI I did double check and the DLLs were present in the files and the settings for them all seemed correct, but the error was still there. |
Initially I was having issues with the 32 bit as well as 64 bit builds. After a little bit of hard work (removing all plugins including firebase, play service resolver etc) and, deleting library and unwanted project folders and copying the jar and aar files from this project to my project), now the 32 bit build is working fine. But the 64 bit is not working. Currently I'm using Unity 2019.2.5f1 and using 32 bit ARM architecture. |
Hi!Is there any news or progress about the issue? |
Fixed it!After poking around a bunch of files, i found that the files "com.google.firebase.firebase-analytics-unity-6.4.0.aar", "com.google.firebase.firebase-app-unity-6.4.0.aar" and "com.google.firebase.firebase-dynamic-links-unity-6.4.0.aar" didn't include the libraries for arm7.After some tries,i figured out that i had to check both arm7 and arm64 in project settings, and then do a force resolve.Now all working fine. |
@SteliosDaVitzi thank you. All working fine. |
I was going to try this, I updated to 2019.2.5 and Firebase 6.5. But no longer was getting the error. Perhaps it was fixed for 6.5 release. |
@SteliosDaVitzi im glad you found a fix for the issue. I tested creating a new project in unity and importing the Firebase Sdk's you mentioned and have all the correct files for arm7 after running the Play Services resolver in force mode. I ran the standard resolve menu option first and it did say that every thing was good but the apk was missing the files like you had above. I had to run the force resolve menu option and it found a issue with my setup and after fixing that had all the required files. |
@markchandler-google @stewartmiles Earlier in my project I was having this issue with the firebase auth and it was fixed in firebase sdk 6.5.0. Now I'm using 6.5.0. Today I need to add the firebase messaging to my project and this issue started again, with the following log:
Can you please suggest me a solution for this issue? I need to add firebase authentication and firebase cloud messaging to my app. @SteliosDaVitzi I did extracted the apk and found that the lib/arm64-v8a/ and lib/armeabi-v7a/ has the same files in the below screenshot: So I dont know why this issue is happening to me again. I have force resolved using play services resolver. still I'm having issue now after adding firebase messaging to the project. Any help from anyone is appreciated. Thanks in advance. |
Hi @tonyjoseph456 !Did you force resolve having the project settings as below? When i did my settings were checked arm7, checked arm64, scripting runtime and api compatibility set to .NET 4.x , and scripting backend to IL2CPP. |
Please fill in the following fields:
Unity editor version: 2019.1.8
Firebase Unity SDK version: 6.4.0
Firebase plugins in use (Auth, Database, etc.):Analytics,DeepLinks
Additional SDKs you are using (Facebook, AdMob, etc.): GooglePlayServices, Facebook, Appodeal, Game Analytics, AppsFlyer, UTNotifications.
Platform you are using the Unity editor on (Mac, Windows, or Linux): Windows
Platform you are targeting (iOS, Android, and/or desktop): Android
Please describe the issue here:
We build for arm 64 architecture.All working fine.
We build the game for arm 7 architecture.
One of the first logs appearing is
DllNotFoundException: Unable to load DLL 'FirebaseCppApp-6_4_0': The specified module could not be found.
09-10 16:32:28.275 19551 19607 E Unity : at Firebase.AppUtilPINVOKE.FirebaseApp_DefaultName_get () [0x00000] in <00000000000000000000000000000000>:0
09-10 16:32:28.275 19551 19607 E Unity : at Firebase.FirebaseApp.get_DefaultName () [0x00000] in <00000000000000000000000000000000>:0
09-10 16:32:28.275 19551 19607 E Unity : at Firebase.FirebaseApp.get_DefaultInstance () [0x00000] in <00000000000000000000000000000000>:0
09-10 16:32:28.275 19551 19607 E Unity : at Firebase.DynamicLinks.DynamicLinks..cctor () [0x00000] in <00000000000000000000000000000000>:0
09-10 16:32:28.275 19551 19607 E Unity : at WildWestSaga.DeepLinksHandler.OnDestroy () [0x00000] in <00000000000000000000000000000000>:0
09-10 16:32:28.275 19551 19607 E Unity : Rethrow as TypeInitializationException: The type initializer for 'Firebase.DynamicLinks.DynamicLinks' threw an exception.
09-10 16:32:28.275 19551 19607 E Unity : at WildWestSaga.DeepLinksHandler.OnDestroy () [0x00000] in <00000000000000000000000000000000>:0
Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
Have not tried.
The text was updated successfully, but these errors were encountered: