web-dev-qa-db-ja.com

致命的なエラー:モジュール 'cloud_firestore'が見つかりません

私のFlutterプロジェクトにクラウドファイストアを追加しようとするたびにこのエラーが発生します。私は最初に私のメインプロジェクトでそれを試しました、そこで失敗しました。私は一度だけ同じ結果を得るきれいな新しいプロジェクトでそれを試しました。私は誰かがこのエラーを持っていたところで少なくとも10つの異なる投稿を読みました。それのどれもうまくいきませんでした。私はポッドとpodfile/podfile.lockを削除して新しいものを生成しました。私は最新の依存関係 "cloud_fireStore:^ 0.14.0"を使ってみました。


これは私のpubspec.yamlです:

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:

  cloud_firestore: ^0.14.0

  flutter:
    sdk: flutter


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.3

dev_dependencies:
  flutter_test:
    sdk: flutter

 _

この私のポッドファイル(その一部):

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Runner' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Runner

end

# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods

pod 'Firebase/Firestore'
 _

私はあなたができることをチェックしましたいくつかの答えを得るためにFirebaseサポートに連絡しましたが、まだ対応を得ていません。

あなたが私がこれを修正することができる方法を知ることができれば、私は真剣にとても感謝しているでしょう!

8
SamuelHrmel

私は実行によってこの問題を解決しました:

flutter clean && flutter run _

0
Anton Shurashov