<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Askand Srivastava on Medium]]></title>
        <description><![CDATA[Stories by Askand Srivastava on Medium]]></description>
        <link>https://medium.com/@Asrivast1?source=rss-ba8775c91eba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*reY5LSWdEbnJdepwa_A4gQ.jpeg</url>
            <title>Stories by Askand Srivastava on Medium</title>
            <link>https://medium.com/@Asrivast1?source=rss-ba8775c91eba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:10:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Asrivast1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Installing and setting up Flutter in Ubuntu and other Linux OS in simple and effective way]]></title>
            <link>https://medium.com/@Asrivast1/installing-and-setting-up-flutter-in-ubuntu-and-other-linux-os-in-simple-and-effective-way-64ba5b21f55a?source=rss-ba8775c91eba------2</link>
            <guid isPermaLink="false">https://medium.com/p/64ba5b21f55a</guid>
            <category><![CDATA[flutterdev]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Askand Srivastava]]></dc:creator>
            <pubDate>Wed, 02 Sep 2020 06:07:09 GMT</pubDate>
            <atom:updated>2020-09-02T06:07:09.328Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jj7Sotj9U-yE0WzzYm3ZFg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@aleksowlade?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Aleksander Vlad</a> on <a href="https://unsplash.com/s/photos/computer?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><blockquote>Flutter is a powerful tool for creating applications using a single code base for Android, iOS, Linux, Mac, Windows and Google Fuchsia. It is an open-source UI software development kit created by Google. It is famous for its breathtaking UI and equally competent back end powered by its own object-oriented, class-based, garbage-collected language Dart.</blockquote><p>Keeping the introduction aside, Flutter as stated earlier is an open source tool and is quite in rise so it’s quite normal for anyone to feel attracted to check out the new kid on the block, whether you come from a native background, are a web app developer or are just a newbie who’s eager to make their first app, Flutter has got you covered.</p><p>As Mark Twain stated-</p><blockquote>The secret of getting ahead is getting started</blockquote><p>But sometimes the process of getting started itself becomes confusing and cumbersome, so here i am trying to make the setup process of Flutter in your Linux systems easy. I’ll be using a <strong>small hack</strong> due to which you <strong>don’t</strong> require to <strong>visit the browser</strong> even <strong>once</strong> and you’ll establish Flutter into your systems very easily and effectively. To be clear this is a tutorial on how to install flutter in your system and Android Studio must be already present in your system. You can install Android Studio into your systems from the following command.</p><pre>sudo snap install android-studio --classic</pre><p>Or you can refer this short tutorial to install Android Studio in your systems.</p><p><a href="https://medium.com/better-programming/install-android-studio-in-ubuntu-b8aed675849f">Install Android Studio in Ubuntu</a></p><h3>Getting Started</h3><p>Fire up your terminal in your system <strong>(ctrl+alt+t)</strong>. Now start by ensuring that your Ubuntu or other Linux distro is up to date. For this, type in the following commands.</p><pre>sudo apt-get update<br>sudo apt-get upgrade</pre><p>In case of Parrot OS or other similar Debian OS, run the following commands as it is a rolling distribution and how APT works, the command will cause considerable problems to your system.</p><pre>sudo apt update<br>sudo apt full-upgrade</pre><h3>Setting up the prerequisites</h3><p>There are a number of tools that are required for your Flutter program to run, here are the two which are not generally present by default in Linux systems.</p><h4>Installing Java JDK</h4><p>First we’ll install Java JDK version 8 and above, setting it to default and checking the version.</p><pre>sudo add-apt-repository ppa:linuxuprising/java<br>sudo apt -y install oracle-java14-installer</pre><p>This will install Java JDK into your system, you can change the JDK version by changing the number according to your wish but make sure it should be greater than 8. I am using the JDK version 14.</p><pre>sudo apt-y install oracle-java14-set-default</pre><p>Generally the system makes the newly installed JDK version in your PC the default one, but to be sure run this command</p><pre>java -version</pre><p>This command is to double check the current JDK version set in your JAVA_HOME.</p><h4>Installing Curl</h4><p>Curl is another command-line tool for transferring data using various network protocols, it’s generally not present or simply not up to date in systems making the build of app fail in many cases. Type the following command to install curl into your systems.</p><pre>sudo apt-get install curl</pre><p>In case of Parrot like OS, remove the <strong>-get </strong>and run the command.</p><h3>Setting up Flutter in Android Studio</h3><p>Here’s where the interesting and unique part kicks in, what if i tell you that instead of going through the generic process, there’s an interesting and simpler way to install flutter into your systems? Let’s us do that just now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*WBOozmprT1dhpCTprpeNrg.png" /><figcaption>A typical Android Studio opening window</figcaption></figure><p>Open the <strong>Plugins Marketplace</strong> in your Android Studio (<em>if you’re in a project go to </em><strong><em>File-Settings-Plugins</em></strong><em> or if you’re on the home screen at the bottom right corner click on </em><strong><em>Configure</em></strong><em> and in the drop down click on </em><strong><em>Plugins</em></strong>). In the plugin marketplace search for <strong>Dart</strong> and <strong>Flutter</strong> plugins and <strong>install</strong> them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*527h4NE7KyhS_1xtrZgmvg.png" /><figcaption>Android Studio Marketplace for installing Flutter</figcaption></figure><p>Now if inside the project first close the project and after a couple of <strong>restarts</strong> of <strong>Android Studio</strong> you’ll get the option of <strong>Start a Flutter Project</strong> in the opening screen of Android Studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*mtNmS5TR7aOxn6KHUAU-1g.png" /><figcaption>Android Studio opening screen after restarting the app after downloading the flutter plugin</figcaption></figure><p>Click on <strong>Start a new Flutter Project</strong>, there you’ll be asked for Flutter SDK Path and on the right side, it’ll give you the option to <strong>install the flutter SDK</strong>, click on that choose the directory where you want to download the SDK ( <em>preferably Home directory</em> ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*WVe5DgxViM6d1Ya5MlJIvQ.png" /><figcaption>Click on Install SDK to install the Flutter SDK</figcaption></figure><p>Now while the the SDK is being downloaded, go to the Home Directory and <strong>enable the Hidden Files View </strong>(<strong>ctrl+H</strong>). Here find the <strong>.bashrc</strong> file and open it with <strong>Text Editor</strong>. Once the SDK is downloaded, <strong>copy the path</strong> of the to the <strong>bin</strong> Folder in the newly downloaded folder. It would be something like this if you downloaded the SDK in the Home Directory and may change according to your downloaded location.</p><p><strong><em>/home/[your_username]/flutter/bin</em></strong></p><p>Now in the <strong>.bashrc </strong>file scroll to the bottom and copy this path by the following format and save the file.</p><pre>export PATH=&quot;$PATH:/home/[your_username]/flutter/bin&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2boi2p-TzvBQz_gPoanYTw.png" /><figcaption><strong>.bashrc screengrab</strong>, at the endof the document enter the path and save the document</figcaption></figure><h3>Wrapping Up</h3><p>Now open a brand new window of the terminal and type the following command to check whether any other prerequisite is remaining or not, if prompted download it.</p><pre>flutter precache</pre><p>Just to recheck whether our flutter has been added to the path and and is globally accessible across the system, run the following command. It should return the location of the flutter doc in the flutter bin folder.</p><pre>which flutter</pre><p>Now to finally check whether you’re ready for full fledged development through flutter, run a final command.</p><pre>flutter doctor</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*ZoStRfAzRBaluAKDaliKjQ.png" /><figcaption>If everything done correctly, the command will give output like this</figcaption></figure><blockquote>Now it’s your time to get hands on experience with Flutter, you’re all ready. So what are you waiting for? Go and enjoy your app development journey from here on out. Happy Coding!!!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64ba5b21f55a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>