title: I got error on flutter so please tell me how to solve it
body: <p>I'm new to flutter, and I'm trying to build a flutter on windows 11, but when I tried to build flutter , I got an error like the one below.I think 'Unhandled Exception: NoSuchMethodError: The method 'initializeApp' was called on null' is the most important sentence in the bottom sentence. I would appreciate it if someone could tell me what's going on!</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  
  
  Performing hot restart...
  Syncing files to device AOSP on IA Emulator...
  Restarted application in 8,737ms.
  E/flutter ( 6725): [ERROR: flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: NoSuchMethodError: The method 'initializeApp' was called on null.
  E/flutter ( 6725): Receiver: null
  E/flutter ( 6725): Tried calling: initializeApp()
  E/flutter ( 6725): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:68:5)
  E/flutter ( 6725): #1      main (package:book_list_sample/main.dart:8:18)
  E/flutter ( 6725): #2      _runMainZoned.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (dart:ui/hooks.dart:129:25)
  E/flutter ( 6725): #3      _rootRun (dart:async/zone.dart:1428:13)
  E/flutter ( 6725): #4      _CustomZone.run (dart:async/zone.dart:1328:19)
  E/flutter ( 6725): #5      _runZoned (dart:async/zone.dart:1863:10)
  E/flutter ( 6725): #6      runZonedGuarded (dart:async/zone.dart:1851:12)
  E/flutter ( 6725): #7      _runMainZoned.&lt;anonymous closure&gt; (dart:ui/hooks.dart:125:5)
  E/flutter ( 6725): #8      _delayEntrypointInvocation.&lt;anonymous closure&gt; (dart:isolate-patch/isolate_patch.dart:297:19)
  E/flutter ( 6725): #9      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
  E/flutter ( 6725): </code></pre>
  </div>
  </div>
  
  <a href="https://i.stack.imgur.com/VqB4K.png" rel="nofollow noreferrer">enter image description here</a></p>