我正在使用Ubuntu 18.04LTS,Android Studio v3.0.1,已安装最新的Android SDK API 30和29,Android SDK构建工具,平台工具和命令行工具(最新),已降级为Java jdk1.8,已安装VSCode上的Dart插件,Android Studio上已安装Dart和Flutter插件,并在终端上使用snap安装了flutter。
但是当我运行 User Text Effort Nunique
0 user122 TextA 2 Weeks 3
1 user124 TextB 2 Weeks 3
2 user125 TextC 3 Weeks 1
3 user126 TextD 2 Weeks 3
4 user126 TextE 2 Weeks 3
时,我得到了
flutter doctor
它说即使我安装了插件并重新启动android studio,插件也没有安装。
当我运行Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.0, on Linux, locale en_IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Android Studio (version 3.0)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.44.0)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
时,我会在终端中键入flutter doctor --android-licenses
来获得所有许可证并接受它们,即使在此之后运行Y
时,它仍然会给我相同的结果。
Java 9出现问题,因此将JDK降级到1.8,但问题仍未解决。
答案 0 :(得分:0)
运行以下命令
$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8*`
$ flutter doctor --android-licenses