一个月前我学习了一些Flutter,一切都很好,没有问题,上周我的电脑丢失了所有内容,需要格式化,我也做了。所以昨天我尝试安装Flutter,但当接受Android许可证时,出现了这个错误:
警告:文件 /home/damiani/.android/repositories.cfg 无法加载。
为了解决这个问题,我只需要 touch .android/repositories.cfg
,然后就不会再出现这个消息了。但是现在,当我运行 flutter doctor --android-licenses
时,它给了我这个:
[========= ] 25% 获取远程存储库......
从这里开始,我什么也做不了,它就停在那里了......有时甚至会出现这种情况:
[============================= ] 75% 正在计算更新......
或者这个:
[======================= ] 58% 正在计算更新......
越长时间则是这样:
1 of 6 SDK package license not accepted.] 100% Computing updates...
Review license that has not been accepted (y/N)? y
1/
从那里开始,这条消息不会改变...
运行 flutter doctor -v
命令时:
[✓] Flutter (Channel master, v1.14.7-pre.120, on Linux, locale pt_BR.UTF-8)
• Flutter version 1.14.7-pre.120 at /home/damiani/flutter
• Framework revision 82c00c915c (3 hours ago), 2020-02-05 06:35:49 -0800
• Engine revision 81dffd1241
• Dart version 2.8.0 (build 2.8.0-dev.7.0 c8ed304e97)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /home/damiani/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: /var/lib/snapd/snap/android-studio/82/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Android Studio (version 3.5)
• Android Studio at /var/lib/snapd/snap/android-studio/82/android-studio
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
! Doctor found issues in 1 category.
没有心情继续学习Flutter了。从现在开始感谢大家......
抱歉,我的英语不好。
操作系统:Arch Linux