-
Notifications
You must be signed in to change notification settings - Fork 433
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
[Bug] Crash Firestore Unity Android #1080
Comments
Hi @pelevinma. I suspect something has gone wrong with the upgrade. Do you still see this issue if you just install 8.0.0 initially (and bypass the upgrade path)? |
Yes, still relevant.
To check this on a clean project, I need to attach the google-services.json file and use the bundleId from the main project, right? |
Yes, that sounds correct. I'll look into this further and reply in the next day or two. |
I got same error on a clean project
|
I'm currently investigating, but I wanted to confirm that you have called |
Yes, I call this and get |
I've been able to easily reproduce this crash. I didn't even have to do an upgrade. This appears to be a bug in the Unity SDK 8.0.0. Here is the code that I used to reproduce:
And the notable error from logcat (full logcat.txt):
I'm actively investigating and will report updates here. |
For some reason QueryEventListener is missing from
I'm going to try to figure out why |
Here is a workaround for this bug. I haven't found the root cause yet. The fix, whatever it is, may not be available for some time.
That |
Thank you for working on this. I am unfortunately still receiving the same error after trying your solution above. |
stopped crashing with this fix for me |
Thank you both for reporting your experiences with the workaround suggested in my previous comment. I'm continuing investigation but have not found a root cause or fix yet. Unfortunately, due to Canadian and American holidays, and some personal time away from work, I will not be able to work on this issue more until mid-next week. I'll provide an update next week once I have something concrete to report. |
I have no idea why this solution is not working for me. I even made brand new project, imported FirebaseAuth and FirebaseFirestore package. This is what i'm using to try to access the database. It blows up on FirebaseFirestore.DefaultInstance;
I've tried this with a minified build and non-minified build, both with same result. Is there a way to to check if the firebase_cpp_resources.jar file is being included in my apk? |
Awesome! Got the same problem and the firestore_cpp_resources.jar fix worked like a charm! Thanks! |
Thanks alot for this! @dconeybe Now i can finally continue developing 😁 |
Update: I've found the root cause and a fix is out for review (cl/383270467 for Googlers). There was a typo in our build script that accidentally caused (surprise) the |
Good news. The fix has been submitted (cl/383683892 for Googlers) and will be included in the next Unity SDK release. Although I cannot commit to a specific date for this release, I would expect it before the end of July. I will add a comment to this issue when that release comes out. In the meantime, please use the workaround from the earlier comment #1080 (comment), remembering to "undo" the workaround once the fix is released and incorporated into your project. Thank you all for your patience and apologies again for this critical bug. We will be making changes to our internal processes to avoid errors like this in the future. |
I followed the solution but no luck. |
@minh-kage By including |
@minh-kage Try https://convertio.co/zip-jar/ to convert the .zip to a jar file and place it in the folder mentioned in the previous comments |
Note that a simple rename of the file from |
Misleading for some because at default windows 10 it doesn't change the format automatically, see gif: |
The fix has just been released in Unity SDK 8.1.0. Remember to undo the workaround (i.e. delete the zip/jar file) when you upgrade. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Java class com/google/firebase/firestore/internal/cpp/QueryEventListener not found. Please verify the AAR which contains the com/google/firebase/firestore/internal/cpp/QueryEventListener class is included in your app.
Could not run "Unity quickstarts" project on Unity 2020.3, got many errors when opening the project
Relevant Code:
DocumentReference docRef = db.Collection("users_v2").Document(userId);
Dictionary<string, object> userData = new Dictionary<string, object>
{
// my user data
};
// crash in next line
docRef.SetAsync(userData).ContinueWithOnMainThread(task =>
{
// callback
});
The text was updated successfully, but these errors were encountered: