gpt4 book ai didi

android - 无法接受 Android 许可证 (Flutter)

转载 作者:行者123 更新时间:2023-12-03 03:00:57 25 4
gpt4 key购买 nike

好吧,一个月前我在学习一点 Flutter,一切都很好,没有问题,所以,上周我在我的 PC 中丢失了所有东西,需要格式化它,我做到了。所以昨天我尝试安装 Flutter,但是在接受 Android 许可证时,它给了我这个错误:
Warning: File /home/damiani/.android/repositories.cfg could not be loaded.
为了解决这个问题,我只是 touch .android/repositories.cfg并且此消息不再出现,但是现在,当我 flutter doctor --android-licenses它给了我这个:
[========= ] 25% Fetch remote repository...
从此,我无能为力,它只是卡在那里......有时甚至给这个:
[============================= ] 75% Computing updates...
或这个:
[======================= ] 58% Computing updates...
它得到的时间越长:

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

最佳答案

切换到 flutter 开发 channel 为我解决了这个问题。跑flutter channel dev然后 flutter upgrade并尝试flutter doctor --android-licenses

关于android - 无法接受 Android 许可证 (Flutter),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60081179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com