{"id":15706,"date":"2025-06-11T16:25:14","date_gmt":"2025-06-11T08:25:14","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706"},"modified":"2025-06-12T18:32:58","modified_gmt":"2025-06-12T10:32:58","slug":"android-studio-flutter%e8%b7%91android%e8%ae%be%e5%a4%87%e9%81%87%e5%88%b0%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706","title":{"rendered":"android studio flutter demo\u8de8\u7aef\u8fd0\u884c\u9047\u5230\u7684\u95ee\u9898"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706\/#%E4%B8%80%E3%80%81android%E5%B9%B3%E5%8F%B0\" title=\"\u4e00\u3001android\u5e73\u53f0\">\u4e00\u3001android\u5e73\u53f0<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706\/#1\" title=\"1.\">1.<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706\/#2\" title=\"2.\">2.<\/a><\/li><\/ul><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706\/#%E4%BA%8C%E3%80%81web%E5%B9%B3%E5%8F%B0\" title=\"\u4e8c\u3001web\u5e73\u53f0\">\u4e8c\u3001web\u5e73\u53f0<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706\/#%E4%B8%89%E3%80%81Windows%E5%B9%B3%E5%8F%B0\" title=\"\u4e09\u3001Windows\u5e73\u53f0\">\u4e09\u3001Windows\u5e73\u53f0<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15706\/#%E5%9B%9B%E3%80%81iosMac%E5%B9%B3%E5%8F%B0\" title=\"\u56db\u3001ios\/Mac\u5e73\u53f0\">\u56db\u3001ios\/Mac\u5e73\u53f0<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E4%B8%80%E3%80%81android%E5%B9%B3%E5%8F%B0\"><\/span>\u4e00\u3001android\u5e73\u53f0<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h3><span class=\"ez-toc-section\" id=\"1\"><\/span>1.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-bash\">FAILURE: Build completed with 8 failures.\n\n1: Task failed with an exception.\n-----------\n* What went wrong:\nExecution failed for task &#039;:app:checkDebugAarMetadata&#039;.\n> Could not resolve all files for configuration &#039;:app:debugRuntimeClasspath&#039;.\n   &gt; Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea.\n     Required by:\n         project :app\n      &gt; Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea.\n         &gt; Could not get resource &#039;https:\/\/storage.googleapis.com\/download.flutter.io\/io\/flutter\/armeabi_v7a_debug\/1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea\/armeabi_v7a_debug-1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea.pom&#039;.\n            &gt; Could not GET &#039;https:\/\/storage.googleapis.com\/download.flutter.io\/io\/flutter\/armeabi_v7a_debug\/1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea\/armeabi_v7a_debug-1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea.pom&#039;.\n               &gt; Got socket exception during request. It might be caused by SSL misconfiguration\n                  &gt; Connection reset\n   &gt; Could not resolve io.flutter:x86_64_debug:1.0.0-109150893958777c8f2215f6cfd3e89e984e8dea.<\/code><\/pre>\n<p>\u7ed9\u6240\u6709\u7684\u6709<code>repositories {<\/code>\u7684\u914d\u7f6e\u6587\u4ef6\u90fd\u914d\u7f6e\u4e0a\u56fd\u5185\u955c\u50cf<\/p>\n<p>\u7136\u540e\u5c31\u80fd\u6b63\u5e38\u7684run\u8d77\u6765\u4e86<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2\"><\/span>2.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u4e00\u76f4\u5361\u5728<br \/>\n<code>Downloading kotlinc-dist GET PROCESSED https:\/\/repo1.maven.org\/maven2\/org\/jetbrains\/kotlin-compiler\/2.0.21\/kotlin-compiler-2.0.21.jar <> C:\\Users<\/code><\/p>\n<p>\u914d\u7f6e\u4e86\u955c\u50cf\u4e5f\u6ca1\u6709\u7528\uff0c\u5e72\u7b49\u7740\u5427\uff0c\u5c31\u662f\u4f1a\u6bd4\u8f83\u6162\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E4%BA%8C%E3%80%81web%E5%B9%B3%E5%8F%B0\"><\/span>\u4e8c\u3001web\u5e73\u53f0<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u6b63\u5e38<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E4%B8%89%E3%80%81Windows%E5%B9%B3%E5%8F%B0\"><\/span>\u4e09\u3001Windows\u5e73\u53f0<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p><strong>\u62a5\u9519<\/strong>\uff1a<\/p>\n<pre><code class=\"language-bash\">Flutter assets will be downloaded from https:\/\/storage.flutter-io.cn. Make sure you trust this source!\nLaunching lib\\main.dart on Windows in debug mode...\nError: Unable to find suitable Visual Studio toolchain. Please run `flutter doctor` for more details.<\/code><\/pre>\n<p><strong>\u89e3\u51b3\u529e\u6cd5<\/strong>\uff1a<br \/>\n\u5b89\u88c5 Visual Studio\u53cac++\u684c\u9762\u5f00\u53d1\u76f8\u5173\u7684\u7ec4\u4ef6<\/p>\n<ul>\n<li>\u6253\u5f00 <strong>Visual Studio Installer<\/strong><\/li>\n<li>\u70b9\u51fb <strong>&quot;\u4fee\u6539&quot;<\/strong> \u4f60\u7684 Community 2022 \u7248\u672c<\/li>\n<li>\u5728 <strong>&quot;\u5de5\u4f5c\u8d1f\u8f7d&quot;<\/strong> \u9009\u9879\u5361\u4e2d\uff1a\n<ul>\n<li>\u52fe\u9009 <strong><code>\u4f7f\u7528 C++ \u7684\u684c\u9762\u5f00\u53d1<\/code><\/strong><\/li>\n<li>\u5728\u53f3\u4fa7\u7684 <strong>&quot;\u5b89\u88c5\u8be6\u7ec6\u4fe1\u606f&quot;<\/strong> \u4e2d <strong>\u624b\u52a8\u52fe\u9009\u4ee5\u4e0b\u7ec4\u4ef6<\/strong>\uff1a<\/li>\n<li><strong>MSVC v142 - VS 2019 C++ x64\/x86 \u751f\u6210\u5de5\u5177<\/strong>\uff08\u5373\u4f7f\u4f60\u5b89\u88c5\u7684\u662f VS 2022\uff0cFlutter \u53ef\u80fd\u4ecd\u4f9d\u8d56\u6b64\u7248\u672c\uff09<\/li>\n<li><strong>MSVC v143 - VS 2022 C++ x64\/x86 \u751f\u6210\u5de5\u5177<\/strong>\uff08\u6700\u65b0\u7248\u5907\u7528\uff09<\/li>\n<li><strong>C++ CMake \u5de5\u5177 for Windows<\/strong><\/li>\n<li><strong>Windows 10 SDK<\/strong>\uff08\u5efa\u8bae\u9009 10.0.19041.0 \u6216\u66f4\u9ad8\u7248\u672c\uff09<\/li>\n<li><strong>Windows 11 SDK<\/strong>\uff08\u53ef\u9009\uff0c\u4f46\u63a8\u8350\u5b89\u88c5\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\u70b9\u51fb <strong>&quot;\u4fee\u6539&quot;<\/strong> \u5b8c\u6210\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p>\u6b63\u5e38\u751f\u6210exe\u8fd0\u884c<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E5%9B%9B%E3%80%81iosMac%E5%B9%B3%E5%8F%B0\"><\/span>\u56db\u3001ios\/Mac\u5e73\u53f0<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u9700\u8981\u82f9\u679c\u7535\u8111<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"15706\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4e00\u3001android\u5e73\u53f01.2.\u4e8c\u3001web\u5e73\u53f0\u4e09\u3001Windows\u5e73\u53f0\u56db\u3001ios\/Mac\u5e73\u53f0 \u4e00\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1190],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15706"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15706"}],"version-history":[{"count":9,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15706\/revisions"}],"predecessor-version":[{"id":15715,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15706\/revisions\/15715"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15706"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}