【问题标题】:I'm not able to run my flutter project on android (emulator & real device). How can I fix it?我无法在 android(模拟器和真实设备)上运行我的颤振项目。我该如何解决?
【发布时间】:2021-07-06 04:36:13
【问题描述】:

每当我尝试在模拟器或真实设备上运行我的颤振项目时,它总是向我显示一个错误,但我能够在 web (Chrome) 上运行相同的项目。

我尝试通过多种方式自己解决此问题,但都无法解决。这张图可以清楚地描述我的问题。This is the screenshot of the major problem that comes to me while running the flutter app on android

【问题讨论】:

  • 通常建议不要发布图片,除非不可避免。

标签: android flutter dart flutter-android


【解决方案1】:
  1. 删除 .gradle 文件。
  2. flutter clean.
  3. 运行 flutter pub get。

它应该可以工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-29
    • 2021-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-26
    • 2021-12-16
    • 2020-10-23
    相关资源
    最近更新 更多