roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
404 stars 330 forks source link

Problem in Android app build #251

Open kimduksoo opened 4 years ago

kimduksoo commented 4 years ago

It stops during the build adroid with below message I just put in flutter_facebook_login: ^3.0.0 at pubspec.yaml :0

[ +139 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.undersalon.suda/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +495 ms] D/FlutterActivity( 8128): Using the launch theme as normal theme.
[  +33 ms] D/FlutterActivityAndFragmentDelegate( 8128): Setting up FlutterEngine.
[        ] D/FlutterActivityAndFragmentDelegate( 8128): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[ +304 ms] W/FlutterEngine( 8128): Tried to automatically register plugins with FlutterEngine (io.flutter.embedding.engine.FlutterEngine@fced605) but could not find and invoke the GeneratedPluginRegistrant.
[        ] D/FlutterActivityAndFragmentDelegate( 8128): Attaching FlutterEngine to the Activity that owns this Fragment.
[ +207 ms] Observatory URL on device: http://127.0.0.1:46180/XX7EHqZLrC4=/
[   +2 ms] executing: /Users/kakao/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:46180
[  +16 ms] 58033
[        ] Forwarded host port 58033 to device port 46180 for Observatory
[  +37 ms] Connecting to service protocol: http://127.0.0.1:58033/XX7EHqZLrC4=/
[  +71 ms] Fail to connect to service protocol: http://127.0.0.1:58033/XX7EHqZLrC4=/: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:58033/XX7EHqZLrC4=/ws
[   +1 ms] Error connecting to the service protocol: failed to connect to http://127.0.0.1:58033/XX7EHqZLrC4=/

$ /Users/kakao/development/flutter/bin/flutter doctor -v [✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.14.5 18F132, locale ko-US) • Flutter version 1.12.13+hotfix.8 at /Users/kakao/development/flutter • Framework revision 0b8abb4724 (5주 전), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1) • Android SDK at /Users/kakao/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.1 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0) • Xcode at /Users/kakao/Downloads/Xcode-beta.app/Contents/Developer • Xcode 11.0, Build version 11M374r • CocoaPods version 1.8.4

[✓] Android Studio (version 3.4) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 37.1.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.43.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.8.1

[✓] Connected device (2 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) • iPhone Xs • F7A8CB5F-DFF2-4A13-A51D-76E039A2B302 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)

• No issues found!

pixnbit commented 4 years ago

iOS the same issue. Several ppl reported the error on Flutter project but narrowed down to flutter_facebook_login plugin:

https://github.com/flutter/flutter/issues/47204

apoleo88 commented 3 years ago

I got the same issue when I added this library. Any updates?