両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
android:flutter [2025/03/17 21:16] – [設定] ともやん | android:flutter [2025/03/17 21:44] (現在) – [インストール] ともやん |
---|
これは Linux である Fedora での手順です。\\ | これは Linux である Fedora での手順です。\\ |
[[https://docs.flutter.dev/get-started/install/linux|Linux install - Flutter documentation]]\\ | [[https://docs.flutter.dev/get-started/install/linux|Linux install - Flutter documentation]]\\ |
[[https://docs.flutter.dev/get-started/install/linux/android|Make Android apps | Flutter]]\\ | [[https://docs.flutter.dev/get-started/install/linux/android|Make Android apps | Flutter]] [[gtr>https://docs.flutter.dev/get-started/install/linux/android|翻訳]]\\ |
| |
==== システム要件 ==== | ==== システム要件 ==== |
<font color="#0087FF"><b>$</b></font> <font color="#33C7DE"><b>export</b></font> PATH=<font color="#A2734C">"</font><font color="#2A7BDE"><b>`</b></font><font color="#26A269">pwd</font><font color="#2A7BDE"><b>`</b></font><font color="#A2734C">/flutter/bin:</font><font color="#A347BA">$PATH</font><font color="#A2734C">"</font> | <font color="#0087FF"><b>$</b></font> <font color="#33C7DE"><b>export</b></font> PATH=<font color="#A2734C">"</font><font color="#2A7BDE"><b>`</b></font><font color="#26A269">pwd</font><font color="#2A7BDE"><b>`</b></font><font color="#A2734C">/flutter/bin:</font><font color="#A347BA">$PATH</font><font color="#A2734C">"</font> |
<font color="#0087FF"><b>$</b></font> <font color="#26A269">echo</font> <font color="#A2734C">'export PATH='</font><font color="#2A7BDE"><b>`</b></font><font color="#26A269">pwd</font><font color="#2A7BDE"><b>`</b></font><font color="#A2734C">'/flutter/bin:$PATH'</font> <font color="#2A7BDE"><b>>></b></font> <u style="text-decoration-style:solid">~/.zshrc</u> | <font color="#0087FF"><b>$</b></font> <font color="#26A269">echo</font> <font color="#A2734C">'export PATH='</font><font color="#2A7BDE"><b>`</b></font><font color="#26A269">pwd</font><font color="#2A7BDE"><b>`</b></font><font color="#A2734C">'/flutter/bin:$PATH'</font> <font color="#2A7BDE"><b>>></b></font> <u style="text-decoration-style:solid">~/.zshrc</u> |
<font color="#2A7BDE"><b>>></b></font> <u style="text-decoration-style:solid">~/.zshrc</u> | |
<font color="#0087FF"><b>$</b></font> <font color="#26A269">flutter</font> <font color="#A347BA">-h</font> | <font color="#0087FF"><b>$</b></font> <font color="#26A269">flutter</font> <font color="#A347BA">-h</font> |
</pre></html></WRAP> | </pre></html></WRAP> |
Run "flutter help <command>" for more information about a command. | Run "flutter help <command>" for more information about a command. |
Run "flutter help -v" for verbose help output, including less commonly used options. | Run "flutter help -v" for verbose help output, including less commonly used options. |
| </pre></html></WRAP> |
| </WRAP> |
| |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269">flutter</font> doctor |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre><div class=BSc> |
| |
| <b> ╔════════════════════════════════════════════════════════════════════════════╗</b> |
| <b> ║ Welcome to Flutter! - https://flutter.dev ║</b> |
| <b> ║ ║</b> |
| <b> ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║</b> |
| <b> ║ statistics and basic crash reports. This data is used to help improve ║</b> |
| <b> ║ Flutter tools over time. ║</b> |
| <b> ║ ║</b> |
| <b> ║ Flutter tool analytics are not sent on the very first run. To disable ║</b> |
| <b> ║ reporting, type 'flutter config --no-analytics'. To display the current ║</b> |
| <b> ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║</b> |
| <b> ║ event will be sent, and then no further information will be sent by the ║</b> |
| <b> ║ Flutter tool. ║</b> |
| <b> ║ ║</b> |
| <b> ║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║</b> |
| <b> ║ The Google Privacy Policy describes how data is handled in this service. ║</b> |
| <b> ║ ║</b> |
| <b> ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║</b> |
| <b> ║ crash reports to Google. ║</b> |
| <b> ║ ║</b> |
| <b> ║ Read about data we send with crash reports: ║</b> |
| <b> ║ https://flutter.dev/to/crash-reporting ║</b> |
| <b> ║ ║</b> |
| <b> ║ See Google's privacy policy: ║</b> |
| <b> ║ https://policies.google.com/privacy ║</b> |
| <b> ║ ║</b> |
| <b> ║ To disable animations in this tool, use ║</b> |
| <b> ║ 'flutter config --no-cli-animations'. ║</b> |
| <b> ╚════════════════════════════════════════════════════════════════════════════╝</b> |
| </div> |
| |
| Downloading Material fonts... 426ms |
| Downloading Gradle Wrapper... 26ms |
| Downloading package sky_engine... 296ms |
| Downloading package flutter_gpu... 140ms |
| Downloading flutter_patched_sdk tools... 455ms |
| Downloading flutter_patched_sdk_product tools... 454ms |
| Downloading linux-x64 tools... 3.4s |
| Downloading linux-x64/font-subset tools... 295ms |
| Doctor summary (to see all details, run flutter doctor -v): |
| <font color="#A2734C">[!]</font> Flutter (Channel master, 0.0.0-unknown, on Fedora Linux 41 (Forty One) 6.13.4-200.fc41.x86_64, locale |
| ja_JP.UTF-8) |
| <b> </b><font color="#E9AD0C"><b>!</b></font><b> Flutter version 0.0.0-unknown on channel master at /home/tomoyan/development/flutter</b> |
| <b> Cannot resolve current version, possibly due to local changes.</b> |
| <b> Reinstall Flutter by following instructions at https://flutter.dev/setup.</b> |
| <b> </b><font color="#E9AD0C"><b>!</b></font><b> The flutter binary is not on your path. Consider adding /home/tomoyan/development/flutter/bin to your path.</b> |
| <b> </b><font color="#E9AD0C"><b>!</b></font><b> The dart binary is not on your path. Consider adding /home/tomoyan/development/flutter/bin to your path.</b> |
| <font color="#C01C28">[✗]</font> Android toolchain - develop for Android devices |
| <b> </b><font color="#F66151"><b>✗</b></font><b> Unable to locate Android SDK.</b> |
| <b> Install Android Studio from: https://developer.android.com/studio/index.html</b> |
| <b> On first launch it will assist you in installing the Android SDK components.</b> |
| <b> (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).</b> |
| <b> If the Android SDK has been installed to a custom location, please use</b> |
| <b> `flutter config --android-sdk` to update to that location.</b> |
| |
| <font color="#C01C28">[✗]</font> Chrome - develop for the web (Cannot find Chrome executable at google-chrome) |
| <b> </b><font color="#E9AD0C"><b>!</b></font><b> Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.</b> |
| <font color="#C01C28">[✗]</font> Linux toolchain - develop for Linux desktop |
| <b> </b><font color="#F66151"><b>✗</b></font><b> clang++ is required for Linux development.</b> |
| <b> It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from</b> |
| <b> https://releases.llvm.org/</b> |
| <b> </b><font color="#F66151"><b>✗</b></font><b> ninja is required for Linux development.</b> |
| <b> It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from</b> |
| <b> https://github.com/ninja-build/ninja/releases</b> |
| <b> </b><font color="#F66151"><b>✗</b></font><b> GTK 3.0 development libraries are required for Linux development.</b> |
| <b> They are likely available from your distribution (e.g.: apt install libgtk-3-dev)</b> |
| <b> </b><font color="#E9AD0C"><b>!</b></font><b> Unable to access driver information using 'eglinfo'.</b> |
| <b> It is likely available from your distribution (e.g.: apt install mesa-utils)</b> |
| <font color="#A2734C">[!]</font> Android Studio (not installed) |
| <font color="#26A269">[✓]</font> Connected device (1 available) |
| <font color="#26A269">[✓]</font> Network resources |
| |
| <font color="#A2734C">!</font> Doctor found issues in 5 categories. |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |