I don't know why but implementing Firebase in Flutter seems painful. (Both are all Google products, they are expected to work like a pair, don't they? XD)
CloudFirestorePlugin.java uses or overrides a deprecated API
Error running pod install
Specs satisfying the cloud_firestore (from .symlinks/plugins/cloud_firestore/ios) dependency were found, but they required a higher minimum deployment target.
There are a lot solutions out there to deal with errors above. Here I wanna note down solutions in my case.
MacOS: 10.15.7 (Catalina)
Xcode: 12.2 (12B45b)
Android Studio (AS): 4.1.2
Flutter Plugin for AS: 52.2.1
Dart Plugin for AS: 201.9317
Follow Todd's video in Firebase official channel on Youtube
This video is released on Dec 3, 2020.
Follow it to do all the basic setup.
Or follow Firebase's official doc
Compiling to Android emulator
CloudFirestorePlugin.java uses or overrides a deprecated API error, but still compiled successfully.
Quit the emulator, compile again, the error gone.
Compiling to iOS simulator
Error running pod install error. Also follows some detail like
Specs satisfying the 'cloud_firestore (from '.symlinks/plugins/cloud_firestore/ios')' dependency were found, but they required a higher minimum deployment target.
In Android Studio:
Click Tools -> Flutter -> Open iOS module in Xcode
Click Runner -> General -> Deployment Info
choose "iOS 10.0" instead of "iOS 9.0"
Quit the simulator, compile again, the error gone.
I hate to raise deployment target to 10.0, but according to FlutterFire's official doc, 9.0 or lower are not accepted.
Top comments (0)