连接服务协议出错:异常:尝试连接 Dart 天文台 5 次,均失败。放弃。 URL 是
Error connecting to the service protocol: Exception: Attempted to connect to Dart observatory 5 times, and all attempts failed. Giving up. The URL was
我的应用程序启动但随后由于错误而停止。我正在使用 Windows 10,android 工作室作为 IDE,并尝试构建一个 android 应用程序。
如果我在 Android 工作室之外使用终端,它可以工作,所以它应该与 android 工作室相关。
控制台:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error connecting to the service protocol: Exception: Attempted to connect to
Dart observatory 5 times, and all attempts failed. Giving up. The URL was
ws://127.0.0.1:50997/ws
颤振医生:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version
10.0.16299.847], locale de-DE)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
X Android license status unknown.
[√] Android Studio (version 3.2)
[√] Connected device (1 available)
! Doctor found issues in 1 category.
如果您配置了代理,
确保您还设置了环境变量
NO_PROXY=127.0.0.1
我的应用程序启动但随后由于错误而停止。我正在使用 Windows 10,android 工作室作为 IDE,并尝试构建一个 android 应用程序。
如果我在 Android 工作室之外使用终端,它可以工作,所以它应该与 android 工作室相关。
控制台:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error connecting to the service protocol: Exception: Attempted to connect to
Dart observatory 5 times, and all attempts failed. Giving up. The URL was
ws://127.0.0.1:50997/ws
颤振医生:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version
10.0.16299.847], locale de-DE)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
X Android license status unknown.
[√] Android Studio (version 3.2)
[√] Connected device (1 available)
! Doctor found issues in 1 category.
如果您配置了代理, 确保您还设置了环境变量
NO_PROXY=127.0.0.1