{"id":1477,"date":"2025-06-07T19:53:06","date_gmt":"2025-06-07T17:53:06","guid":{"rendered":"https:\/\/ricaro.top\/?p=1477"},"modified":"2025-06-07T19:53:07","modified_gmt":"2025-06-07T17:53:07","slug":"android-%d1%80%d0%b0%d0%b7%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%ba%d0%b0-%d0%bd%d0%b0-asus-x556uam","status":"publish","type":"post","link":"https:\/\/ricaro.top\/?p=1477","title":{"rendered":"Android \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 ASUS X556UAM"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Flutter + VS Code \u043d\u0430 Xubuntu 22.04<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade -y\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b\nsudo apt install -y curl git unzip xz-utils zip libglu1-mesa\n\n# \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Android \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438\nsudo apt install -y android-tools-adb android-tools-fastboot\n\n# \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438\nsudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Flutter<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0412\u0430\u0440\u0438\u0430\u043d\u0442 1: \u0427\u0435\u0440\u0435\u0437 snap (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f)\nsudo snap install flutter --classic\n\n# \u0412\u0430\u0440\u0438\u0430\u043d\u0442 2: \u0420\u0443\u0447\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\ncd ~\/\nwget https:\/\/storage.googleapis.com\/flutter_infra_release\/releases\/stable\/linux\/flutter_linux_3.24.3-stable.tar.xz\ntar xf flutter_linux_3.24.3-stable.tar.xz\nexport PATH=\"$PATH:`pwd`\/flutter\/bin\"\necho 'export PATH=\"$PATH:$HOME\/flutter\/bin\"' &gt;&gt; ~\/.bashrc\nsource ~\/.bashrc\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 VS Code<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0427\u0435\u0440\u0435\u0437 snap\nsudo snap install code --classic\n\n# \u0418\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 .deb \u043f\u0430\u043a\u0435\u0442\nwget -qO- https:\/\/packages.microsoft.com\/keys\/microsoft.asc | gpg --dearmor &gt; packages.microsoft.gpg\nsudo install -o root -g root -m 644 packages.microsoft.gpg \/etc\/apt\/trusted.gpg.d\/\nsudo sh -c 'echo \"deb &#91;arch=amd64,arm64,armhf signed-by=\/etc\/apt\/trusted.gpg.d\/packages.microsoft.gpg] https:\/\/packages.microsoft.com\/repos\/code stable main\" &gt; \/etc\/apt\/sources.list.d\/vscode.list'\nsudo apt update\nsudo apt install code\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Android Command Line Tools (\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0421\u043e\u0437\u0434\u0430\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f Android SDK\nmkdir -p ~\/android-sdk\/cmdline-tools\n\n# \u0421\u043a\u0430\u0447\u0430\u0439 Command Line Tools\ncd ~\/android-sdk\/cmdline-tools\nwget https:\/\/dl.google.com\/android\/repository\/commandlinetools-linux-11076708_latest.zip\nunzip commandlinetools-linux-11076708_latest.zip\nmv cmdline-tools latest\n\n# \u0414\u043e\u0431\u0430\u0432\u044c \u0432 PATH\necho 'export ANDROID_HOME=$HOME\/android-sdk' &gt;&gt; ~\/.bashrc\necho 'export PATH=$PATH:$ANDROID_HOME\/cmdline-tools\/latest\/bin' &gt;&gt; ~\/.bashrc\necho 'export PATH=$PATH:$ANDROID_HOME\/platform-tools' &gt;&gt; ~\/.bashrc\nsource ~\/.bashrc\n\n# \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b Android SDK\nsdkmanager \"platform-tools\" \"platforms;android-34\" \"build-tools;34.0.0\"\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Flutter<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u041f\u0440\u043e\u0432\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443\nflutter doctor\n\n# \u0412\u043a\u043b\u044e\u0447\u0438 web \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443\nflutter config --enable-web\n\n# \u041e\u0442\u043a\u043b\u044e\u0447\u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 (\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432)\nflutter config --no-analytics\ndart --disable-analytics\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">7. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 VS Code \u0434\u043b\u044f Flutter<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f Flutter \u0438 Dart\ncode --install-extension Dart-Code.flutter\ncode --install-extension Dart-Code.dart-code\n\n# \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\ncode --install-extension ms-vscode.vscode-json\ncode --install-extension bradlc.vscode-tailwindcss\ncode --install-extension PKief.material-icon-theme\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">8. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a VS Code<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0421\u043e\u0437\u0434\u0430\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a\nmkdir -p ~\/.config\/Code\/User\/\ncat &gt; ~\/.config\/Code\/User\/settings.json &lt;&lt; 'EOF'\n{\n    \"dart.flutterHotReloadOnSave\": true,\n    \"dart.openDevTools\": \"never\",\n    \"editor.formatOnSave\": true,\n    \"dart.debugExternalPackageLibraries\": false,\n    \"dart.debugSdkLibraries\": false,\n    \"editor.codeActionsOnSave\": {\n        \"source.fixAll\": true\n    },\n    \"workbench.iconTheme\": \"material-icon-theme\",\n    \"editor.minimap.enabled\": false,\n    \"editor.wordWrap\": \"on\"\n}\nEOF\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">9. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Android \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u041d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435\/\u043f\u043b\u0430\u043d\u0448\u0435\u0442\u0435:\n# 1. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u2192 \u041d\u043e\u043c\u0435\u0440 \u0441\u0431\u043e\u0440\u043a\u0438 (\u043d\u0430\u0436\u043c\u0438 7 \u0440\u0430\u0437)\n# 2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u2192 \u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043f\u043e USB (\u0432\u043a\u043b\u044e\u0447\u0438)\n# 3. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443\n\n# \u041f\u0440\u043e\u0432\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\nadb devices\nflutter devices\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">10. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u041f\u043e\u043b\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430\nflutter doctor -v\n\n# \u0421\u043e\u0437\u0434\u0430\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\nflutter create test_app\ncd test_app\n\n# \u0417\u0430\u043f\u0443\u0441\u0442\u0438 \u043d\u0430 web\nflutter run -d chrome\n\n# \u0418\u043b\u0438 \u043d\u0430 Android \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435\nflutter run\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">11. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043a\u0435\u0448\u0435\u0439 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438)\nflutter clean\ndart pub cache clean\n\n# \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432\nsudo apt install htop\nhtop\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u0413\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Ctrl + S<\/code> &#8212; \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u0433\u043e\u0440\u044f\u0447\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430<\/li>\n\n\n\n<li><code>Ctrl + Shift + P<\/code> &#8212; \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430<\/li>\n\n\n\n<li><code>F5<\/code> &#8212; \u0437\u0430\u043f\u0443\u0441\u043a \u043e\u0442\u043b\u0430\u0434\u043a\u0438<\/li>\n\n\n\n<li><code>Ctrl + F5<\/code> &#8212; \u0437\u0430\u043f\u0443\u0441\u043a \u0431\u0435\u0437 \u043e\u0442\u043b\u0430\u0434\u043a\u0438<\/li>\n\n\n\n<li><code>r<\/code> &#8212; \u0433\u043e\u0440\u044f\u0447\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 Flutter<\/li>\n\n\n\n<li><code>R<\/code> &#8212; \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/li>\n\n\n\n<li><code>q<\/code> &#8212; \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u0415\u0441\u043b\u0438 flutter doctor \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f\u043c\u0438\nflutter doctor --android-licenses\n\n# \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\nsudo usermod -a -G plugdev $USER\nsudo service udev restart\n\n# \u0415\u0441\u043b\u0438 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\necho 'fs.inotify.max_user_watches=524288' | sudo tee -a \/etc\/sysctl.conf\nsudo sysctl -p\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Flutter + VS Code \u043d\u0430 Xubuntu 22.04 1. \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b 2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Flutter 4. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 VS Code 5. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Android Command Line Tools (\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e) 6. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Flutter 7. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 VS Code \u0434\u043b\u044f Flutter 8. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a VS Code 9. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Android \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 10. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 11. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1477","post","type-post","status-publish","format-standard","hentry","category-1"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts\/1477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1477"}],"version-history":[{"count":1,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts\/1477\/revisions"}],"predecessor-version":[{"id":1478,"href":"https:\/\/ricaro.top\/index.php?rest_route=\/wp\/v2\/posts\/1477\/revisions\/1478"}],"wp:attachment":[{"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricaro.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}