※追記いたしました。
flutter doctor -v コマンドの実行結果を追記致しました。
Flutter 環境構築 について質問させていただきます。
大まかに以下の手順で環境構築を行いました。
【1】FlutterのSDKのダウンロード
【2】Androidstudioのダウンロード
【3】エミュレータのダウンロード
【4】デフォルトアプリの実行
【4】を行った時に
と表示されます。
そもそもこうなるに至った経緯としましては初めに
Flutter SDKのバージョン1.20.2(最新)をダウンロードした後で、
1.17.3をダウンロードし直したことが原因と考えられ、
調査したところ、Gradleラッパーのダウンロードに関する問題である可能性があるのではないかと思いさらに調べた結果、
Android/graidle/wrapper/gradle-wrapper.properties
dart
1#Fri Jun 23 08:50:38 CEST 2017 2distributionBase=GRADLE_USER_HOME 3distributionPath=wrapper/dists 4zipStoreBase=GRADLE_USER_HOME 5zipStorePath=wrapper/dists 6distributionUrl=https\://services.gradle.org/distributions/gradle******-all.zip 7
の6行目のdistributionUrlを変更すれば
Android/graidle/wrapper/gradle-wrapper.properties
dart
1#Fri Jun 23 08:50:38 CEST 2017 2distributionBase=GRADLE_USER_HOME 3distributionPath=wrapper/dists 4zipStoreBase=GRADLE_USER_HOME 5zipStorePath=wrapper/dists 6distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip 7
デフォルトのアプリ(+ボタンをタップするとカウンターが増えていくアプリ)が動作するのすが、新たにアプリをcreateする場合も毎回このdistributionUrlを変更せねばならず効率が悪いので改善したです。助言いただければ幸いです。
※ここより追記です
こちらがターミナルから flutter doctor -v コマンドを実行した結果です。
ookidoshinyanoMacBook-Air:flutter_third_app ookidoshinya$ flutter doctor -v [✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.14.6 18G103, locale ja-JP) • Flutter version 1.17.3 at /Users/ookidoshinya/flutter • Framework revision b041144f83 (3 months ago), 2020-06-04 09:26:11 -0700 • Engine revision ee76268252 • Dart version 2.8.4 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/ookidoshinya/Library/Android/sdk • Platform android-30, build-tools 30.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted. [✗] 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 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 48.1.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [!] VS Code (version 1.47.2) • VS Code at /Applications/Visual Studio Code.app/Contents ✗ Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
環境 MacOS
Flutterのバージョン
Flutter 1.17.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b041144f83 (3 months ago) • 2020-06-04 09:26:11 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4
回答1件
あなたの回答
tips
プレビュー