question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashes after FirebaseAuth auth = FirebaseAuth.DefaultInstance

See original GitHub issue

I use FireBase authentication with a simple function that signs up a new user, it works great on the Unity Editor, but when I build it on my Android, it crashes the second it starts FirebaseAuth auth = FirebaseAuth.DefaultInstance This is the error I get before it crashes-

Java class com/google/firebase/auth/FirebaseAuthWebException not found. Please verify the AAR which contains the com/google/firebase/auth/FirebaseAuthWebException class is included in your app.

Why do I even get the Firebase-AuthWeb-Exception ? Why can’t it find that exception? (I tried to resolve jar files, and to re-import auth SDK but it didn’t solve the issue My app is simple- there’s a SignUp button that calls this function-

`public void SignUp() { FirebaseAuth auth = FirebaseAuth.DefaultInstance; //The error is after this line

}`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
shlightercommented, Oct 24, 2018

I finally fixed it! It was a problem with the dependencies but was impossible to solve, even though I tried Android-resolve so many times.

-I removed all Firebase files (didn’t help before) -I removed Library folder (under project folder) -I removed AndroidResolverDependencies (under projectsettings folder) -I removed unity folder in C:\Users*\AppData\Local and C:\Users***\AppData\Roaming -Installed the Firebase package again -Android resolve

That’s it.

0reactions
bensalciecommented, May 10, 2019

@stewartmiles Thanks it worked, I had to add firebase to my Android studio the manual way and it worked, i think it was an issue with adding the firebase functionality using firebase tool kit, it didnt work with firebase 16.1.0, its working now…thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes after FirebaseAuth.DefaultInstance
For clarification, I am using Firebase Auth, Firebase Database, Google Play Services. The error went away when I downgraded to Firebase ...
Read more >
App crashes after FirebaseAuth.DefaultInstance
DefaultInstance. This is the error I get before it crashes- Java class com/google/firebase/auth/FirebaseAuthWebException not found.
Read more >
[Unity-Android] Crash when using firebase Auth
The stack trace says that you're missing the Android dependencies in your APK. Run "Assets > Play Services Resolver > Android Resolver >...
Read more >
Firebase.Auth.FirebaseAuth Class Reference
App ; CurrentUser; DefaultInstance; IdTokenChanged; LanguageCode; StateChanged ... This should only happen for a short period of time after the FirebaseAuth ...
Read more >
Crashing app every time I try to Log in or Register using ...
I am trying to create a Login and Registration page within my Fitness app using FirebaseAuth, however every time I click on Register...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found