在调试模式下在LG D858HK上启动lib / main.dart ...天文台连接从未准备就绪

时间:2017-07-18 19:01:22

标签: intellij-idea flutter

只需使用intellij IDEA设置flutter,当我尝试运行应用程序时,我在我的IDEA控制台上收到以下消息:

Launching lib/main.dart on LG D858HK in debug mode...
Observatory connection never became ready.

我以前在我的笔记本电脑上成功地设置了颤振,现在在我的ubuntu桌面上尝试了它,由于某种原因它似乎无法正常工作。 如果有帮助,我的终端上的flutter doctor命令会给出以下内容:

 [✓] Flutter (on Linux, locale en_IN, channel alpha)
    • Flutter at /home/lordvcs/flutter
    • Framework revision d36e2f6191 (4 weeks ago), 2017-06-21 15:09:10 -0700
    • Engine revision b0dee695ec
    • Tools Dart version 1.24.0-dev.6.7

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
    • Android SDK at /home/lordvcs/Android/Sdk
    • Platform android-26, build-tools 26.0.0
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 2.3)
    • Android Studio at /opt/android-studio
    • Gradle version 3.2
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.2)
    • Flutter plugin version 15.1
    • Dart plugin version 172.3317.48

[✓] Connected devices
    • LG D858HK • LGD858HK5272817 • android-arm • Android 7.1.2 (API 25)

编辑: 我在这里发现了类似的问题:https://github.com/flutter/flutter-intellij/issues/1021

1 个答案:

答案 0 :(得分:1)

从终端,我更改为flutter项目目录并运行命令flutter run,并且应用程序已在我的设备上成功运行。在这样做之后,我重新启动了intellij IDEA,现在当我运行该程序时,它的工作(很奇怪)。