尽管尝试了所有可以在网上找到的内容,但我一次又一次地遇到此错误。 到目前为止,我已经完成了以下步骤来解决此问题:
C:\Users\Asus>flutter doctor --android-licenses All SDK package licenses accepted.======] 100% Computing updates... C:\Users\Asus>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.17.1, on Microsoft Windows [Version 10.0.18363.836], locale en-IN) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc4) [√] Android Studio (version 3.6) [√] Connected device (1 available) • No issues found!
完成所有这些操作后,所有项目仍然出现此错误。甚至是在创建新的flutter项目时预先编写的基本项目。
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Exception: Gradle task assembleDebug failed with exit code -1