-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
var httpClient = HttpClient()..connectionTimeout = const Duration(seconds: 5);
var request = await httpClient.getUrl(url);
I modified my code to now use a timeout and this happens:
D/skia ( 5333): Program linking failed.
E/flutter ( 5333): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'setOption' was called on null.
E/flutter ( 5333): Receiver: null
E/flutter ( 5333): Tried calling: setOption(Instance of 'SocketOption', true)
$ flutter doctor -v
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version
10.0.17763.379], locale en-US)
• Flutter version 1.2.1 at C:\Software\flutter
• Framework revision 8661d8aecd (3 months ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[√] Android toolchain - develop for Android devices (Android SDK version
28.0.3)
• Android SDK at C:\Users\claud\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native
profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 35.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
[!] VS Code (version 1.33.1)
• VS Code at C:\Users\claud\AppData\Local\Programs\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9
(API 28) (emulator)
! Doctor found issues in 1 category.
nemethmik
Metadata
Metadata
Assignees
Labels
No labels