Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by shiroto · Feb 28, 2017 at 02:19 PM · androidplugingoogle playdllnotfoundexception

Firebase TypeInitializationException/DLLNotFoundException on Android

Hi! I am trying to use Firebase within Unity (5.5.2). It works fine in the editor, but when I make an Android build and try to run it, I get the following error: alt text

There is only one line of code that I am trying to run:

FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(myurl);

What I did

I created a new project, set it to Android, imported the Firebase SDK from this site: https://firebase.google.com/docs/unity/setup and importet the FirebaseDatabase.unitypackage. Then I created a script that tries to set the URL, which works fine in the editor (I can even go further and read and write to the database).

Fixes I tried

  • setting the PATH variable according to https://github.com/firebase/Firebase-Unity/issues/2

  • updating everything in my SDK Manager, all the Google stuff and Android tools, SDK for each version

  • uninstalling and reinstalling Java (64 Bit)

The very strange thing is, that the same project works for another person. When he builds, I can run the app on my phone just fine. So the issue must be something in my workspace. Here is what I got:

  • Windows 8.1 and 7 (64 Bit)

  • Unity 5.5.2f1 (also tried 5.5.0)

  • jdk-8u121

  • android-ndk-r10e

  • Go Play services v39

  • Google Repository v44

Can anyone think of ANYTHING at all that might cause this issue? There must be something I am missing...

EDIT I also tried to run the quickstart database project (https://github.com/firebase/quickstart-unity/tree/master/database/testapp), which also works fine in the editor, but in a build results in this message:

"One or more Firebase dependencies are not present. Current dependency status: UnavailableOther"

Which I assume is the same error, just masked by exception handling.

screenshot-2017-02-28-14-04-10.png (440.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Deathfate · Mar 01, 2017 at 03:28 PM

Check you have done everything in this list.

  1. Import the google-services.json and copy it to your Assets folder

  2. Wrap your using Firebase.Unity.Editor and FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(myurl); in #if UNITY_EDITOR #endif

  3. Go to Assets->Play Services Resolver->Android Resolver->Resolve Client Jars

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image shiroto · Mar 01, 2017 at 04:10 PM 0
Share

Go to Assets->Play Services Resolver->Android Resolver->Resolve Client Jars

Oh sweet jesus, that was it! Thanks!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Google Play Services sign in not working well on Unity Android 1 Answer

Google+ authorization problem. 1 Answer

Build finished after Google Play Games plugin setup but gives 2 FileNotFoundException (s) Should I be worried? 2 Answers

Unity4.6.1&Google Play Plugin Freeze Problem On Exit On Android 3 Answers

Google Play Games plugin introduces -Unable to find the Android SDK manager tool. - error 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges