【问题标题】:Flutter : emulator not work get error with gradleFlutter:模拟器不起作用,gradle出错
【发布时间】:2021-05-17 19:02:40
【问题描述】:

我想使用(VSCode 或 Android Studio)运行 Flutter 应用程序,我都收到此错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.io.IOException: The device is not ready

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
Exception: Gradle task assembleDebug failed with exit code 1

有什么解决办法吗?

【问题讨论】:

    标签: flutter android-emulator


    【解决方案1】:

    我通过运行这些命令解决了这个问题:

    flutter channel stable
    flutter upgrade --force
    flutter pub cache repair
    flutter clean
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-18
      • 1970-01-01
      • 1970-01-01
      • 2022-11-28
      • 2017-12-01
      • 1970-01-01
      • 2021-01-07
      • 2016-11-09
      相关资源
      最近更新 更多