0

正在集成过程中,此错误不断发生尝试了多个答案,例如使用flutter clean或更改 CompiledSdk 无济于事。我正在调试 Pixel 2 XL Api 级别 27。

这是输出flutter run -vhttps ://pastebin.com/UdaFSFvP

这是pubspec.yamlhttps ://pastebin.com/UdaFSFvP

这是输出flutter doctorhttps ://pastebin.com/4DThja3W

[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.778], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[!] IntelliJ IDEA Community Edition (version 2019.1)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
    ! No devices available
! Doctor found issues in 2 categories.

在此处输入图像描述

4

1 回答 1

0

所以我解决了这个问题。

如果您遇到此错误,请尝试以下操作。

1.flutter clean

2.delete pubspec.lock

3.flutter pub get

4.检查依赖版本,因为有些可能与您的目标 SDK 不兼容(这是我的错误)

于 2020-05-16T17:35:42.327 回答