Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.17.4, on Linux, locale zh_CN.UTF-8) [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] Android Studio (not installed) [!] Connected device ! No devices available
! Doctor found issues in 3 categories.
如果设备为手机,在IDEA上也可以看到。
运行 flutter run 命令来运行应用程序:
1
flutter run
卡在Running Gradle task ‘assembleDebug’…
因为Gradle的Maven仓库是在国外, 我们可以使用阿里云的镜像地址~
修改 flutter 基础地址
1
vim /opt/flutter/packages/flutter_tools/gradle/flutter.gradle