【问题标题】:flutter attach - Oops; flutter has exited unexpectedly颤振附加 - 哎呀; Flutter 意外退出
【发布时间】:2020-06-15 14:41:12
【问题描述】:

从 android studio 终端运行颤振附加不起作用。显示错误Flutter 意外退出。

终端输出:

flutter attach
Checking for advertised Dart observatories...

Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 50ca8df4de508ad3)

Crash report written to /Users/johnnykuttymathew/Documents/Work/Code/<project>/flutter_04.log;

如何避免这种情况?所有项目都在发生这种情况。甚至是新创建的项目。

颤振医生输出。

$ flutter doctor -v
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale en-DE)
    • Flutter version 1.5.4-hotfix.2 at /usr/local/custom/flutter
    • Framework revision 7a4c33425d (3 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/johnnykuttymathew/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • 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-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2, Build version 10E125
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2019.1.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 191.7019
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (1 available)
    • iPhone Xʀ • 98882BC0-AF96-4B19-B530-78A7EFAA5DFF • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

! Doctor found issues in 1 category.

【问题讨论】:

  • 崩溃报告是什么?

标签: android-studio flutter


【解决方案1】:

安装 Flutter 和 Dart 插件:

-> 启动 Android Studio。

-> 打开插件首选项(macOS 上的首选项 > 插件,Windows 和 Linux 上的文件 > 设置 > 插件)。

-> 选择Browse repositories,选择Flutter插件并点击Install。

-> 提示安装 Dart 插件时单击“是”。

-> 出现提示时单击重新启动。

【讨论】:

    【解决方案2】:

    a) 请仔细检查所有依赖组件是否已正确安装。 b) 您还需要检查是否未安装多个 android-sdk,如果是则卸载,因为两个 sdk 可能会产生问题。 c) 如果设置为 Android_Home,则重置 Android-sdk 路径(许多开发人员这样做并修复了它) d) 有时颤动的依赖项面临权限问题,如果您在 Mac 上或在 Windows 上的命令提示符下,可以通过在终端上运行 sudo su 来解决此问题

    【讨论】:

      【解决方案3】:

      尝试升级 Flutter / Dart 插件并使用 flutter channel stable 将频道更改为稳定版。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-02-03
        • 2021-10-26
        • 2021-11-26
        • 1970-01-01
        • 2023-03-29
        • 2019-10-17
        • 1970-01-01
        相关资源
        最近更新 更多