我的应用程序会启动,但随后会因错误而停止。我正在使用windows 10,android studio作为ide,并试图构建一个android应用程序。
如果我使用的是android studio之外的终端,那么它应该是与android studio相关的。
慰问:
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.