前提・実現したいこと
Flutterでiosアプリを作ろうと思っています。
Android StdioでFlutterのRunを実行した結果、エラーが出たのですが解決法が分からず困っています。
エラーメッセージ
Error running 'main.dart': Cannot find runner for main.dart
試したこと
flutter doctor -vの実行し、以下のメッセージを受けました。
一見すると問題ないと思っています。
$ flutter doctor -v Warning! This package referenced a Flutter repository via the .packages file that is no longer available. The repository from which the 'flutter' tool is currently executing will be used instead. running Flutter tool: /Users/tsudashouki/flutter previous reference : /Users/tsudashouki/Desktop/st_namer/flutter This can happen if you deleted or moved your copy of the Flutter repository, or if it was on a volume that is no longer mounted or has been mounted at a different location. Please check your system path to verify that you are running the expected version (run 'flutter --version' to see which flutter is on your path). [✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15 19A602, locale ja-JP) • Flutter version 1.9.1+hotfix.6 at /Users/tsudashouki/flutter • Framework revision 68587a0916 (8 weeks ago), 2019-09-13 19:46:58 -0700 • Engine revision b863200c37 • Dart version 2.5.0 [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at /Users/tsudashouki/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.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_202-release-1483-b49-5587405) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.1, Build version 11A1027 • CocoaPods version 1.8.3 [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 41.0.2 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [✓] Connected device (1 available) • iPhone 8 • 368DC565-91C0-482F-AB24-C69A3F868B0F • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1 (simulator) • No issues found!
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。