flutterのエミュレータ―で起動できない
flutterでfirebaseと絡めたときだけ起動できないです。
flutterでチャットアプリを製作していますが
firebaseからデータを同期するようにしていますが
エミュレータ―で起動する際ただの画面なら起動できますが
firebaseを含んだコードの画面からやるとうまくいきません
エラー文
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app-debug.apk...
Debug service listening on ws://127.0.0.1:55842/MuWl9idi9BE=/ws
Syncing files to device sdk gphone64 x86 64...
D/ProfileInstaller( 8671): Installing profile for com.example.untitled
E/flutter ( 8671): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Binding mixin instance is null but bindings are already initialized.
E/flutter ( 8671): The "instance" property of the ServicesBinding binding mixin was accessed, but that binding was not initialized when the "initInstances()" method was called.
E/flutter ( 8671): This probably indicates that the ServicesBinding mixin was not mixed into the class that was used to initialize the binding. If this is a custom binding mixin, there must also be a custom binding class, like WidgetsFlutterBinding, but that mixes in the selected binding. If this is a test binding, check that the binding being initialized is the same as the one into which the test binding is mixed.
E/flutter ( 8671): It is also possible that ServicesBinding does not implement "initInstances()" to assign a value to "instance". See the documentation of the BindingBase class for more details.
E/flutter ( 8671): The binding that was initialized was of the type "null".
E/flutter ( 8671): #0 BindingBase.checkInstance.<anonymous closure> (package:flutter/src/foundation/binding.dart:329:9)
E/flutter ( 8671): #1 BindingBase.checkInstance (package:flutter/src/foundation/binding.dart:389:6)
E/flutter ( 8671): #2 ServicesBinding.instance (package:flutter/src/services/binding.dart:56:54)
E/flutter ( 8671): #3 _findBinaryMessenger (package:flutter/src/services/platform_channel.dart:136:25)
E/flutter ( 8671): #4 BasicMessageChannel.binaryMessenger (package:flutter/src/services/platform_channel.dart:181:56)
E/flutter ( 8671): #5 BasicMessageChannel.send (package:flutter/src/services/platform_channel.dart:195:38)
E/flutter ( 8671): #6 FirebaseCoreHostApi.initializeCore (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:208:52)
E/flutter ( 8671): #7 MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:29:54)
E/flutter ( 8671): #8 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:73:13)
E/flutter ( 8671): #9 Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:47)
E/flutter ( 8671): #10 main (package:untitled/main.dart:15:18)
E/flutter ( 8671): #11 _runMain.<anonymous closure> (dart:ui/hooks.dart:159:23)
E/flutter ( 8671): #12 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:296:19)
E/flutter ( 8671): #13 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
E/flutter ( 8671):
build/gradleなどに調べた限りのことを追加入力してみましたがうまくいきませんでした。
端末はネットにつながっており
APIは33と34でテストしてますが変わりません
0 likes