dwyl / dwyl/learn-flutter

Flutter Mac Installation

Open
#13 21 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
JavaScript
Stars
98
Forks
10
PR merge metrics
No merged PRs in 30d

Description

While attempting to download/install Flutter following the official instructions:
https://flutter.dev/docs/get-started/install/macos

I _also_ had to download:
+ https://code.visualstudio.com/Download [83mb]
+ https://developer.android.com/studio [769mb]
+ https://developer.apple.com/xcode [11Gb!!!]

```
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-GB)

[✓] 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
✗ CocoaPods not installed.
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 install:
sudo gem install cocoapods
[!] Android Studio (version 3.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.41.1)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available

! Doctor found issues in 4 categories.
```

+ [x] https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
![image](https://user-images.githubusercontent.com/194400/72173372-4bbac680-33cf-11ea-8eb9-32f10c5f2a8e.png)

+ [x] CocoaPods not installed. > `brew install cocoapods`

“Visual Studio Code” can’t be opened because Apple cannot check it for malicious software.
![image](https://user-images.githubusercontent.com/194400/72173179-e4047b80-33ce-11ea-88fa-b54a82b37c13.png)
see: https://github.com/microsoft/vscode/issues/74782 (_open Settings > Security ... click on "Open Anyway"_)
![visual-studio-code-open-anyway](https://user-images.githubusercontent.com/194400/72206780-c8aa7680-3489-11ea-8071-eadef5a8aef9.png)

[!] Android Studio (version 3.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
https://stackoverflow.com/questions/51860845/flutter-plugin-not-installed-error-when-running-flutter-doctor

After installing everything we have the following:
```
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)

[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.41.1)
[!] Connected device
! No devices available

! Doctor found issues in 1 category.
```

https://stackoverflow.com/questions/49045393/flutter-run-no-connected-devices
https://flutter.dev/docs/get-started/install/macos#set-up-the-android-emulator

Open Android Studio and locate the drop-down that says no devices:
![image](https://user-images.githubusercontent.com/194400/72174160-f67fb480-33d0-11ea-8ca1-87854f64d389.png)
Click on "Open AVD Manager" (_Android Virtual Device_)
![Screenshot 2020-01-10 at 17 45 29](https://user-images.githubusercontent.com/194400/72174258-2d55ca80-33d1-11ea-9340-049e724cd756.png)

You should see the following:
![image](https://user-images.githubusercontent.com/194400/72174315-5e35ff80-33d1-11ea-8889-aaebabfdcba6.png)

Select the API version: (click the download button)
![image](https://user-images.githubusercontent.com/194400/72174342-6beb8500-33d1-11ea-8aee-b262825d1b0b.png)

That will download Android Q which is _another_ 1.1Gb
![image](https://user-images.githubusercontent.com/194400/72174380-8b82ad80-33d1-11ea-9df5-03bfbbbec0de.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.