{"id":3076,"date":"2023-08-06T21:35:16","date_gmt":"2023-08-06T12:35:16","guid":{"rendered":"https:\/\/took.jp\/?p=3076"},"modified":"2023-08-07T04:12:58","modified_gmt":"2023-08-06T19:12:58","slug":"flutter-doctor","status":"publish","type":"post","link":"https:\/\/took.jp\/tech-blog\/flutter-doctor\/","title":{"rendered":"flutter doctor\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc\u89e3\u6c7a\u65b9\u6cd5\u5099\u5fd8\u9332"},"content":{"rendered":"<p><a href=\"https:\/\/docs.flutter.dev\/get-started\/install\/macos\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u5f93\u3044\u3001flutter\u306e\u74b0\u5883\u69cb\u7bc9\u3057\u305f\u6642\u3001\u300cflutter doctor\u300d\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc\u89e3\u6c7a\u65b9\u6cd5\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>MacOS 13.2.1\uff08Apple Silicon\uff09<\/li>\n<li>flutter 3.10.6<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u30a8\u30e9\u30fc\u5185\u5bb9\u3068\u89e3\u6c7a\u65b9\u6cd5<\/h2>\n<h3>cmdline-tools\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-other\"> cmdline-tools component is missing\r\n Run `path\/to\/sdkmanager --install \"cmdline-tools;latest\"`\r\n See https:\/\/developer.android.com\/studio\/command-line for more details.<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Android Studio\u3092\u8d77\u52d5\u3057\u3001<strong><\/strong><span class=\"sc_marker\"><strong>More Actions<\/strong><\/span>\u3092\u62bc\u4e0b\u3057\u3001\u30ea\u30b9\u30c8\u304b\u3089<strong><\/strong><span class=\"sc_marker\"><strong>SDK\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/strong><\/span>\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/took.jp\/wp-content\/uploads\/2023\/08\/d888c199c781a83e8a6e550d997d9cc4-2-300x251.png\" alt=\"\" width=\"800\" height=\"669\" class=\"alignnone wp-image-3091\" srcset=\"https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/d888c199c781a83e8a6e550d997d9cc4-2-300x251.png 300w, https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/d888c199c781a83e8a6e550d997d9cc4-2-768x642.png 768w, https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/d888c199c781a83e8a6e550d997d9cc4-2.png 1024w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/took.jp\/wp-content\/uploads\/2023\/08\/72a87cdd48a77dd93a15b3ba6797ff22-300x131.png\" alt=\"\" width=\"800\" height=\"348\" class=\"alignnone wp-image-3078 lazyload\" data-srcset=\"https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/72a87cdd48a77dd93a15b3ba6797ff22-300x131.png 300w, https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/72a87cdd48a77dd93a15b3ba6797ff22.png 708w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u5de6\u5074\u306e\u30ea\u30b9\u30c8\u304b\u3089<strong>Languages &amp; Frameworks<\/strong> &gt; <strong><\/strong><span class=\"sc_marker\"><strong>Android SDK<\/strong><\/span>\u3092\u9078\u629e\u3057\u3001<strong>SDK Tools\u30bf\u30d6<\/strong>\u306e<strong><\/strong><span class=\"sc_marker\"><strong>Android SDK Command-line Tools<\/strong><\/span>\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u53f3\u4e0b\u306eOK\u3092\u62bc\u3057\u3001\u30b3\u30de\u30f3\u30c9\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/took.jp\/wp-content\/uploads\/2023\/08\/2aecce5b13489d7191543b3d50248c70-300x223.png\" alt=\"\" width=\"800\" height=\"595\" class=\"alignnone wp-image-3080 lazyload\" data-srcset=\"https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/2aecce5b13489d7191543b3d50248c70-300x223.png 300w, https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/2aecce5b13489d7191543b3d50248c70-768x571.png 768w, https:\/\/took.jp\/tech-blog\/wp-content\/uploads\/2023\/08\/2aecce5b13489d7191543b3d50248c70.png 1024w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>\u30e9\u30a4\u30bb\u30f3\u30b9\u8a8d\u8a3c<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-markup\">Android license status unknown.\r\nRun `flutter doctor --android-licenses` to accept the SDK licenses.\r\nSee https:\/\/flutter.dev\/docs\/get-started\/install\/macos#android-setup for more details.<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>cmdline-tools\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u3053\u308d\u3001\u30a8\u30e9\u30fc\u306f\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8b66\u544a\u304c\u51fa\u305f\u307e\u307e\u3060\u3063\u305f\u305f\u3081\u3001\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-other\">Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3042\u308b\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-other\">flutter doctor --android-licenses<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u5b9f\u884c\u5f8c\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u78ba\u8a8d\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3001y\u3092\u62bc\u4e0b\u3057\u3001\u305d\u306e\u5f8c\u51fa\u3066\u304f\u308b\u6587\u7ae0\u3092\u78ba\u8a8d\u3057\u3001y\u3092\u62bc\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-other\">[=======================================] 100% Computing updates...             \r\n5 of 7 SDK package licenses not accepted.\r\nReview licenses that have not been accepted (y\/N)? y<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>XCode\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-other\">Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.\r\n      Download at: https:\/\/developer.apple.com\/xcode\/download\/\r\n      Or install Xcode via the App Store.\r\n      Once installed, run:\r\n        sudo xcode-select --switch \/Applications\/Xcode.app\/Contents\/Developer\r\n        sudo xcodebuild -runFirstLaunch<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>AppStore\u304b\u3089XCode\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-other\">sudo xcode-select --switch \/Applications\/Xcode.app\/Contents\/Developer\r\nsudo xcodebuild -runFirstLaunch<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5f93\u3044\u3001flutter\u306e\u74b0\u5883\u69cb\u7bc9\u3057\u305f\u6642\u3001\u300cflutter doctor\u300d\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc\u89e3\u6c7a\u65b9\u6cd5\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002 &nbsp; \u74b0\u5883 MacOS 13.2.1\uff08Apple Silicon\uff09 flutter 3.10\u2026<\/p>\n","protected":false},"author":3,"featured_media":3081,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[122],"tags":[],"class_list":["post-3076","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flutter"],"_links":{"self":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/3076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/comments?post=3076"}],"version-history":[{"count":0,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/3076\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/media\/3081"}],"wp:attachment":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/media?parent=3076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/categories?post=3076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/tags?post=3076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}