【发布时间】:2020-06-22 12:20:27
【问题描述】:
所以我正在尝试开始 Flutter 插件开发,但我被困在步骤 2b HERE。
Android Studio 只是显示错误:
Cannot Import Project
The project file specified already exists.
我很确定我已按照说明进行操作:
flutter create --org com.example --template=plugin hellocd hello/example; flutter build apk
这些步骤一切正常,示例应用程序似乎已构建,然后我进入步骤 2b,Android Studio 显示上述错误。
扑扑医生:
[✓] Flutter (Channel dev, 1.20.0-1.0.pre, on Mac OS X 10.13.6 17G13035, locale en-DK)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[!] Xcode - develop for iOS and macOS
✗ 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
sudo xcodebuild -runFirstLaunch
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (1 available)
【问题讨论】: