App crashes after FirebaseAuth auth = FirebaseAuth.DefaultInstance
See original GitHub issueI 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:
- Created 5 years ago
- Comments:24 (13 by maintainers)
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.
@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