每当我试图在一个模拟器或一个真正的设备上运行时,它就会被困在“Running Gradle task 'assembleDebug”上,整个计算机就会被冻结和卡住,唯一的出路就是重新启动它。doctor时,我在终端中得到这个输出:更新了Doctor summary (to see all details, run flutterdoctor -v):
[√] F
然而,当我想要安装Flutter时,它给出了例外:Unhandled exceptionTry re-installing or updating your Android SDK,
visit https://flutter.io/setup/#android-setup for detailedTo res
我正在用谷歌flutter开发安卓和ios应用程序。当我向pubspec.yaml添加一个像shared_preferences这样的新依赖项,然后在终端中执行flutter run时,我得到了这个错误:
What went wrong: A problemYou have not accepted the license agreements of the following SDK components: [Android SDK Platform 27因为我系统上最新的Android SDK
我正在尝试为Ubuntu中的flutter开发设置vscode,但我在定位android和接受许可时遇到了问题。我安装了android,并在SDK管理器中勾选了所有内容,然后将flutter配置更改为android路径,但仍然存在相同的错误。--> flutterdoctorDoctor summary (to see all details, run flutterdoctor