我遇到安装问题。我跑步时得到以下内容 扑医生
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.11.6 15G19009, locale en)
• Flutter version 0.4.4 at /Users/divyakrishnan/Development/flutter
• Framework revision f9bb4289e9 (11 days ago), 2018-05-11 21:44:54 -0700
• Engine revision 06afdfe54e
• Dart version 2.0.0-dev.54.0.flutter-46ab040e58
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/divyakrishnan/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
• All Android licenses accepted.
[!] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup
[✓] Android Studio
• Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
✗ 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-915-b01)
[!] IntelliJ IDEA Community Edition (version 2018.1.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[!] Connected devices
! No devices available
我没有看到Android Studio 3.0和IntelliJ中的颤动或dart插件。
答案 0 :(得分:3)
默认情况下,Android Studio或IntelliJ不会安装插件。您需要使用this page:
中的说明自行安装它们安装Flutter和Dart插件
两个插件支持Flutter:
- Flutter插件支持Flutter开发人员工作流程(运行,调试,热重载等)。
- Dart插件提供代码分析(键入代码验证,代码完成等)。
要安装这些:
- 启动Android Studio。
- 打开插件首选项(首选项> macOS上的插件,文件>设置> Windows& Linux上的插件)。
- 选择“浏览存储库...”,选择“Flutter”插件,然后单击“安装”。
- 提示安装Dart插件时单击“是”。
- 出现提示时单击“重新启动”。
答案 1 :(得分:1)
答案 2 :(得分:1)
这是快速安装Android Studio的步骤:
1.Go to Settings->Plugin->Install Flutter and Dart->Restart Android Studio
2.Download the flutter sdk
3.In the environment Variable->User Variable->
ANDROID_HOME F:\AndroidSDK(Paste your Android SDK Path)
Path:F:\AndroidSDk;(Paste your Android SDK Path)
c:\ProgramFiles\Java\jdk\1.8.0_20\bin;(Paste your jdk Path)
c:\Users\Desktop\flutter\bin;(Paste your Flutter SDK Path)
4.Git install at c:\ProgramFiles\Git
5.Open Gitbash
$flutter doctor
$flutter doctor --android-licenses
Accept the licences Y Y Y Y
Make sure your Device should be connected your PC
答案 3 :(得分:0)
IDE中最重要的东西之一总是“以管理员身份运行”,即Android等。 避免一些错误。
答案 4 :(得分:0)
在Android Studio中安装Flutter和Dart插件非常容易, 请按照以下步骤进行安装-
有关更多信息,Click here to find detail steps with graphical inteface
答案 5 :(得分:0)
我遇到了同样的问题,以下是解决我的问题的步骤( Install the Flutter and Dart plugins ):
现在运行Android Studio。
运行flutter doctor
。您应该得到以下输出:
答案 6 :(得分:0)
在 VS Code
中安装 Flutter 和 Dart 插件使用 Flutter Doctor 验证您的设置
答案 7 :(得分:0)
我自己找到了这个解决方案,所以没有证明或细节的链接。
我尝试通过 Android Studio (File - Settings - Plugins - Market Place
) 安装 Dart 和 Flutter 插件。每次安装后都显示Restart IDE
。每次Android Studio 使用重启后显示Disable Flutter plugin or install Dart
。
经过多次尝试(通过上述选项安装 Dart),我做了什么我进入了
*\.AndroidStudio4.0\system\plugins
将 flutter-intellij.zip
和 Dart-*.*.zip
文件复制到
*\.AndroidStudio4.0\config\plugins
和刚刚解压这两个文件(这里使用了提取选项)并启动了android studio,错误消失了并且Android Studio显示了一些数据收集消息。
现在我可以看到File -> New -> New Flutter Project ...