Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses 解决方法
16lz
2021-01-23
mopondys-iMac:~ zyc$ flutter doctorDoctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel dev, v1.16.2, on Mac OS X 10.14.1 18B75, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK version 29.0.2) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses[!] Xcode - develop for iOS and macOS (Xcode 10.1) ✗ Flutter requires a minimum Xcode version of 11.0.0. Download the latest version or update via the Mac App Store. ! CocoaPods 1.5.3 out of date (1.8.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade: sudo gem install cocoapods[✓] Android Studio (version 3.5)[!] IntelliJ IDEA Ultimate Edition (version 2019.1.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality.[✓] Connected device (1 available)
进入到sdk目录下的tools/bin目录下:/sdk/tools/bin
然后执行 sdkmanager --licenses
安装提示,一直按 y即可
mopondys-iMac:bin zyc$ flutter doctorDoctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel dev, v1.16.2, on Mac OS X 10.14.1 18B75, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)[!] Xcode - develop for iOS and macOS (Xcode 10.1) ✗ Flutter requires a minimum Xcode version of 11.0.0. Download the latest version or update via the Mac App Store. ! CocoaPods 1.5.3 out of date (1.8.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade: sudo gem install cocoapods[✓] Android Studio (version 3.5)[!] IntelliJ IDEA Ultimate Edition (version 2019.1.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality.[✓] Connected device (1 available)! Doctor found issues in 2 categories.
配置环境变量名
sdk: ANDROID_HOME
更多相关文章
- Android中判断网络是否连接并提示设置
- android部分机型选择图片提示错误
- 如何在Mac/Linux上设置android环境变量
- Android01--开发环境搭建
- 【Android】win10操作系统下Android开发环境配置
- ubuntu下cocos2d--Android环境搭建
- android studio对于错误拼写/不识别的英文单词,给予波浪提示。
- Android系统基础(02) 系统源码环境搭建