{"id":5138,"date":"2020-08-13T18:37:05","date_gmt":"2020-08-13T18:37:05","guid":{"rendered":"http:\/\/wordpress.creativegigs.net\/docly\/docs\/docly-documentation\/content\/cheatsheet\/"},"modified":"2021-02-11T07:06:00","modified_gmt":"2021-02-11T07:06:00","slug":"cheatsheet","status":"publish","type":"docs","link":"https:\/\/rockerstech.com\/documentation\/docs\/flutter-ui-kit-quickstart\/elements\/cheatsheet\/","title":{"rendered":"How to Setup Flutter in Android Studio \u2013 macOS"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Download Android Studio \u2013&nbsp;<a href=\"https:\/\/developer.android.com\/studio\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/developer.android.com\/studio\/<\/a><\/li><li>Download Xcode \u2013&nbsp;<a href=\"https:\/\/apps.apple.com\/us\/app\/xcode\/id497799835?mt=12\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/apps.apple.com\/us\/app\/xcode\/id497799835?mt=12<\/a><\/li><li>Get the Flutter SDK \u2013&nbsp;<a href=\"https:\/\/flutter.dev\/docs\/get-started\/install\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/flutter.dev\/docs\/get-started\/install<\/a><\/li><li>Learn more about Android Studio \u2013&nbsp;<a href=\"https:\/\/developer.android.com\/studio\/intro\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/developer.android.com\/studio\/intro\/<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1 : Get the Flutter SDK<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1 Download the following installation bundle to get the latest stable release of the Flutter SDK:<br>2 Download SDK and extract downloaded file, just double click on that. and just copy extracted folder and paste it to your desired location (for example,<strong>&nbsp;Documents\\flutter<\/strong>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2 : Update your path<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"important\">Important:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Path variable needs to be updated to access \u201cflutter\u201d command from terminal. you can just update path variable for current terminal window only. and if you want to access flutter commands from anywhere in terminal, we need to update SDK path permanently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To update PATH variable, we need to open terminal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To update PATH variable for current terminal window only, then enter this command&nbsp;<strong>\u201cexport PATH=\u201d$PATH:`pwd`\/flutter\/bin\u201d\u201d&nbsp;<\/strong>and hit enter key.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To update PATH variable permanently, then Open or create&nbsp;<strong>.bash_profile<\/strong>&nbsp;file. to open or create that file, then enter&nbsp;<strong>\u201csudo open -e $HOME\/.bash_profile\u201d<\/strong>&nbsp;and hit enter key.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Append below line to bash_profile file at bottom of all other content.&nbsp;<strong>\u201cexport PATH=\u201d$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]\/flutter\/bin\u201d\u201d<\/strong>&nbsp;as [PATH_TO_FLUTTER_GIT_DIRECTORY] is actual path of SDK folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run this command on terminal&nbsp;<strong>\u201csource $HOME\/.bash_profile\u201d<\/strong>&nbsp;to refresh PATH variables.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then check whether our SDK is successfully installed or not.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>You are now ready to run Flutter commands in the Flutter Console!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run&nbsp;<strong>\u201cflutter doctor\u201d<\/strong>&nbsp;into terminal, If you are getting check list of flutter sdk requirements, it means SDK is successfully installed on your machine. and you can start building flutter apps on your machine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If you find any issue during environment setup in macos, please go online&nbsp;<a href=\"https:\/\/flutter.dev\/docs\/get-started\/install\/macos\" target=\"_blank\" rel=\"noreferrer noopener\">Click here<\/a><\/strong><\/p>\n","protected":false},"featured_media":0,"parent":2744,"menu_order":4,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-5138","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/comments?post=5138"}],"version-history":[{"count":2,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5138\/revisions"}],"predecessor-version":[{"id":5654,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5138\/revisions\/5654"}],"up":[{"embeddable":true,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/2744"}],"prev":[{"title":"How to Setup Flutter in Android Studio \u2013 Windows.","link":"https:\/\/rockerstech.com\/documentation\/docs\/flutter-ui-kit-quickstart\/elements\/notice\/","href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/2804"}],"wp:attachment":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/media?parent=5138"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=5138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}