skip to Main Content

Firebase – Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE. App crashes due to this

Crash log - --------- beginning of crash 2023-03-03 15:33:10.259 11639-12705/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: PID: 11639 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done(AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381) at java.util.concurrent.FutureTask.setException(FutureTask.java:250) at java.util.concurrent.FutureTask.run(FutureTask.java:269) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012) Caused by:…

VIEW QUESTION

firebase core initialize error I started getting this error after updating flutter

''' Launching lib/main.dart on sdk gphone64 arm64 in debug mode... : Error: The method 'initializeCore' isn't defined for the class 'FirebaseCoreHostApi'. - 'FirebaseCoreHostApi' is from 'package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart' ('../../.pub-cache/hosted/pub.dev/firebase_core_platform_interface-4.5.3/lib/src/pigeon/messages.pigeon.dart'). Try correcting the name to the name of an existing method, or defining…

VIEW QUESTION

How to retrieve data from Firestore in flutter

I have made a collection in this way: var res = FirebaseFirestore.instance.collection("hotels"); var response =await res.doc(res.id).collection(data.email).doc(data.hotelName).collection(data.hotelName).doc().collection('hotel_details').add( 'hotel_name': data.hotelName, 'hotel_email': data.email,}); This is the code to retrive I have used: final res = FirebaseFirestore.instance.collection("hotels"); final response = await res.doc(res.id).collection(email).get(); I am…

VIEW QUESTION
Back To Top
Search