无法在Android Studio中运行Flutter插件

时间:2018-11-05 13:14:41

标签: flutter

我正在尝试按照以下步骤创建Flutter插件:https://flutter.io/developing-packages/#step-1-create-the-package

flutter create --template=plugin -i swift hello


flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.14 18A391, locale en-DK)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.28.2)
[✓] Connected devices (1 available)

更新:我已经将Dart和Flutter插件添加到Android Studio(现在Flutter doctor都是复选标记),但仍然没有运行按钮。请注意,这是一个生成的插件。我可以创建一个新的Flutter项目,但是为此,我不知道如何运行示例应用程序?

我可以使用flutter run运行示例代码,但是在Android Studio中打开项目不会显示任何运行按钮吗?

0 个答案:

没有答案