Android Studio-未安装Flutter插件;这增加了Flutter特定的功能 [英] Android Studio - Flutter plugin not installed; this adds Flutter specific functionality
问题描述
考虑到我已经执行了所有这些步骤,所以 https://flutter.dev/docs /get-started/install/linux 在我的Ubuntu 18.04LTS中,为什么以下问题继续出现:
Considering that I had followed all this steps https://flutter.dev/docs/get-started/install/linux in my Ubuntu 18.04LTS, why this following problem continues to appear:
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.7.8+hotfix.2, on Linux, locale en_US.UTF-8)
• Flutter version 1.7.8+hotfix.2 at /opt/flutter
• Framework revision 2e540931f7 (2 weeks ago), 2019-07-02 09:31:07 -0700
• Engine revision b1cb0d9e9b
• Dart version 2.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/rodrigo/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/rodrigo/Android/Sdk
• Java binary at: /usr/share/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
• All Android licenses accepted.
[✓] Android Studio (version 3.4)
• Android Studio at /usr/share/android-studio
• Flutter plugin version 37.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
[!] Android Studio
• Android Studio at /opt/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API
29) (emulator)
! Doctor found issues in 1 category.
与此处StackOverflow中的另一个类似问题不同,在我安装Flutter插件之前,"[✓] Android Studio(版本3.4)"等于"[!] Android Studio",并带有相同的错误消息.安装flutter插件(和dart)后,只有"[!] Android Studio"仍显示错误.
Different from another similar questions here in StackOverflow, before I've installed flutter plugin the "[✓] Android Studio (version 3.4)" was equal to "[!] Android Studio", with same error messages. After I've installed flutter plugin (and dart), only "[!] Android Studio" still displaying the error.
有人知道为什么吗?我在文件中进行了很多搜索,但只安装了一个Android Studio.为什么显示两个?什么是"[!] Android Studio"?命令"$ flutter doctor"是否有问题?
Does someone know why? I've made many searches in my files, I have only one Android Studio installed. Why displays two? What "[!] Android Studio" refer to? Does command "$ flutter doctor" have a problem?
推荐答案
这可以通过简单的步骤解决:
This can be solved in simple steps:
第1步:打开Android Studio
Step 1: Open Android Studio
第2步:打开Android Studio偏好设置
Step 2: Open Android Studio Preferences
第3步:转到插件标签
第4步:点击MarketPlace标签
Step 4: Click on MarketPlace tab
第5步:在搜索框中搜索抖动
Step 5: Search for flutter in search box
您将看到与flutter相关的插件列表.单击第一个,然后检查它是哪个版本.当前,最新版本是37.1.1.
You will see a list of plugins related to flutter. Click on the first one and check which version it is. Currently, the latest version is 37.1.1.
第6步:点击安装. (它可能还会要求您安装dart插件.单击是",android studio将为您安装dart和flutter)
Step 6: Click on install. (It may ask you to install dart plugin also. Hit yes and android studio will install dart and flutter for you)
准备摇滚!
这篇关于Android Studio-未安装Flutter插件;这增加了Flutter特定的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!