firebase_auth_demo_flutter icon indicating copy to clipboard operation
firebase_auth_demo_flutter copied to clipboard

Error connecting to the service protocol

Open j3ffc0ll1ns opened this issue 4 years ago • 1 comments

So I am not exactly a complete newcomer to Flutter, but I do have many gaps in my understanding of how all of the pieces fit together. Regardless, I am trying to increase the complexity of my apps and I liked the work you have done in this repo and wanted to learn from you.

I have run into an issue which is outside of anything I have previously encountered in Flutter and so far my Google searches to resolve the problem have not been very helpful.

SUMMARY: When I try to run your app with only the minimal changes required to allow it to connect to my instance of Firebase, it flashes a white screen for a brief moment and then exits. I am seeing the same behavior on my Android emulator and my physical Android device (I have not attempted on ios). The following are the last 4 messages displayed in the debug console each time I attempt to run:

  1. Tried to automatically register plugins with FlutterEngine (io.flutter.embedding.engine.FlutterEngine@7d866ec) but could not find and invoke the GeneratedPluginRegistrant.
  2. Attaching FlutterEngine to the Activity that owns this Fragment.
  3. Error connecting to the service protocol: failed to connect to http://127.0.0.0.1:63924/s8uwxXhoRuU=/
  4. Shutting down VM (on the physical device it just hangs)

I am assuming this problem is related to how my environment is setup to handle plugins and I am totally unfamiliar with how plug ins are setup/developed/deployed.

I have done the normal flutter clean / doctor / build routine to see if that would help.

I would appreciate any insight or suggestions you may have.

Flutter: 1.12.13_hotfix.9 - stable channel Windows 10 development environment

j3ffc0ll1ns avatar Apr 11 '20 20:04 j3ffc0ll1ns

UPDATE: I saw something in LogCat which seemed to indicate there was an issue with the Facebook authorization. I commented out all Facebook and Apple references and the APP now runs as expected.

This will allow me to move forward. Somewhat defeats the purpose of a multi-auth template but I can re-visit when I either hear from you or, I gain more experience with those providers.

j3ffc0ll1ns avatar Apr 12 '20 01:04 j3ffc0ll1ns