firebase-unity-sdk icon indicating copy to clipboard operation
firebase-unity-sdk copied to clipboard

Windows x86 support for Unity Editor

Open malkavien opened this issue 8 years ago • 13 comments

Hi, I am doing all samples in this guide but get same exception in all projects, following step by step. I have Unity 5.6.1f1, Firebase Unity SDK 4.0.1

InitializationException: A Firebase shared library (.dll / .so) could not be loaded. Firebase is distributed with native (C/C++) dependencies that are required by the SDK.

It's possible that parts of Firebase SDK have been removed from your Unity project.

To resolve the problem, try re-importing your Firebase plugins and building again.

Alternatively, you may be trying to use Firebase on an unsupported platform. See the Firebase website for the list of supported platforms.

Firebase.FirebaseApp.TranslateDllNotFoundException (System.Action closureToExecute) Firebase.FirebaseApp+FirebaseHandler.Create () Firebase.FirebaseApp.get_DefaultInstance () Firebase.Analytics.FirebaseAnalytics..cctor () Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.Analytics.FirebaseAnalytics UIHandler.InitializeFirebase () (at Assets/TestApp/UIHandler.cs:66) UIHandler.Start () (at Assets/TestApp/UIHandler.cs:52)

malkavien avatar Jun 18 '17 18:06 malkavien

That error will occur if the DLL's for the various Firebase libraries are missing. They should be under Plugins/{platform}/Firebase, for example the desktop stub for FirebaseApp is Plugins/x86_64/Firebase/App.dll. They should also have the correct platforms selected (Editor/Standalone under x86_64, iOS under the iOS folder, etc).

If those files are missing, reimport the UnityPackage and make sure that the Plugin directory is being included. If those files are there, make sure they have the correct platforms selected.

If that doesn't work, please let me know, along with what platform you are seeing this error on.

On Sun, Jun 18, 2017 at 11:06 AM, malkavien [email protected] wrote:

Hi, I am doing all samples in this guide but get same exception in all projects, following step by step. I have Unity 5.6.1f1, Firebase Unity SDK 4.0.1

InitializationException: A Firebase shared library (.dll / .so) could not be loaded. Firebase is distributed with native (C/C++) dependencies that are required by the SDK.

It's possible that parts of Firebase SDK have been removed from your Unity project.

To resolve the problem, try re-importing your Firebase plugins and building again.

Alternatively, you may be trying to use Firebase on an unsupported platform. See the Firebase website for the list of supported platforms.

Firebase.FirebaseApp.TranslateDllNotFoundException (System.Action closureToExecute) Firebase.FirebaseApp+FirebaseHandler.Create () Firebase.FirebaseApp.get_DefaultInstance () Firebase.Analytics.FirebaseAnalytics..cctor () Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.Analytics.FirebaseAnalytics UIHandler.InitializeFirebase () (at Assets/TestApp/UIHandler.cs:66) UIHandler.Start () (at Assets/TestApp/UIHandler.cs:52)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <firebase/firebase-unity-sdk#271>, or mute the thread https://github.com/notifications/unsubscribe-auth/AKLyPcQJeWYMTnBbpX4LnVUy0RMPL55Qks5sFWcZgaJpZM4N9kDY .

a-maurice avatar Jun 19 '17 21:06 a-maurice

I should add, if you are seeing this on Android, the fix is a bit different. For Android, we use the "Play Services Resolver" to set up the .so files. To confirm the settings, you can go to Assets > Android Resolver > Settings. I recommend having checked: "Enable Auto-Resolution", "Install Android Packages", and "Explode AARs". If you don't want to enable auto-resolution, you can do it manually by going to Assets > Android Resolver > Resolve Client Jars.

Hopefully my prior message or this one helps fix the issue you are seeing, but please let us know if it doesn't. -Anthony

On Mon, Jun 19, 2017 at 2:35 PM, Anthony Maurice [email protected] wrote:

That error will occur if the DLL's for the various Firebase libraries are missing. They should be under Plugins/{platform}/Firebase, for example the desktop stub for FirebaseApp is Plugins/x86_64/Firebase/App.dll. They should also have the correct platforms selected (Editor/Standalone under x86_64, iOS under the iOS folder, etc).

If those files are missing, reimport the UnityPackage and make sure that the Plugin directory is being included. If those files are there, make sure they have the correct platforms selected.

If that doesn't work, please let me know, along with what platform you are seeing this error on.

On Sun, Jun 18, 2017 at 11:06 AM, malkavien [email protected] wrote:

Hi, I am doing all samples in this guide but get same exception in all projects, following step by step. I have Unity 5.6.1f1, Firebase Unity SDK 4.0.1

InitializationException: A Firebase shared library (.dll / .so) could not be loaded. Firebase is distributed with native (C/C++) dependencies that are required by the SDK.

It's possible that parts of Firebase SDK have been removed from your Unity project.

To resolve the problem, try re-importing your Firebase plugins and building again.

Alternatively, you may be trying to use Firebase on an unsupported platform. See the Firebase website for the list of supported platforms.

Firebase.FirebaseApp.TranslateDllNotFoundException (System.Action closureToExecute) Firebase.FirebaseApp+FirebaseHandler.Create () Firebase.FirebaseApp.get_DefaultInstance () Firebase.Analytics.FirebaseAnalytics..cctor () Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.Analytics.FirebaseAnalytics UIHandler.InitializeFirebase () (at Assets/TestApp/UIHandler.cs:66) UIHandler.Start () (at Assets/TestApp/UIHandler.cs:52)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <firebase/firebase-unity-sdk#271>, or mute the thread https://github.com/notifications/unsubscribe-auth/AKLyPcQJeWYMTnBbpX4LnVUy0RMPL55Qks5sFWcZgaJpZM4N9kDY .

a-maurice avatar Jun 20 '17 17:06 a-maurice

@malkavien did Anthony's advice solve your problem?

stewartmiles avatar Jul 06 '17 16:07 stewartmiles

No, cause i'm using a architecture x86 and to solve need x64

malkavien avatar Jul 06 '17 21:07 malkavien

@malkavien you're using an x86 architecture development machine? i.e Windows / OSX something else?

stewartmiles avatar Jul 06 '17 22:07 stewartmiles

Windows 10

malkavien avatar Jul 07 '17 01:07 malkavien

Windows 10 x86 / Windows 10 x86_64?

On Thu, Jul 6, 2017 at 6:26 PM, malkavien [email protected] wrote:

Windows 10

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <firebase/firebase-unity-sdk#271>, or mute the thread https://github.com/notifications/unsubscribe-auth/AFw1RKFSKC49eav8ih1fF3zpScneai6oks5sLYkqgaJpZM4N9kDY .

stewartmiles avatar Jul 07 '17 01:07 stewartmiles

x86 only this was problem

malkavien avatar Jul 07 '17 09:07 malkavien

Next month I will have a better computer and I will be able to test if the suggested solution works.

malkavien avatar Jul 07 '17 09:07 malkavien

We're getting there :) We have a fix for the C++ API in Firebase C++ 4.4.2 (https://firebase.google.com/support/release-notes/cpp-relnotes#4.4.2), but we're still working on the editor support for x86 on windows.

johnb003 avatar Feb 24 '18 01:02 johnb003

@DenizPiri FYI

stewartmiles avatar Jul 11 '18 15:07 stewartmiles

@stewartmiles Is Unity Standalone Support for 32 bits available?

I'm trying to use it with Firebase 6.1.1 and it's only working with 64bits builds.

Please, I really need to know if this is available or not. I'm using Firebase Database for my Games and if Windows 32 bit is not available I will need to use something different.

wagenheimer avatar Jun 25 '19 14:06 wagenheimer

@wagenheimer we don't currently have 32-bit (x86) builds for Windows & macOS. Also, beware if you're going to ship a game on desktop with the Firebase SDK https://firebase.google.com/docs/unity/setup#desktop_workflow

stewartmiles avatar Jun 26 '19 01:06 stewartmiles