DEV Community

shashidharreddydakuri
shashidharreddydakuri

Posted on

Install flutter in ubuntu

Ubuntu flutter installation

prerequisites
-Install android studio and when first open it asked to install additional components, install them.
-go to configure and open AVD manager. install android virtual device. It may ask for /dev/kvm permissions.
Run these commands

  1. sudo apt install qemu-kvm

for Add your user to kvm group using:

  1. sudo adduser kvm

If still showing permission denied:

3.sudo chown /dev/kvm

above commands are temporary for the present opened terminal
use this one also

sudo setfacl -m u:UserName:rwx /dev/kvm

this command works perfectly.

-downoad flutter .tar.xz file from
https://flutter.dev/docs/get-started/install/linux

put that file in the desired location eg, Documents/sdk/

goto /sdk folder in terminal and run this command

tar xf

-run this to add path

export PATH="$PATH:pwd/flutter/bin"

create flutter app

flutter create

goto flutter app folder

run command

flutter run

To work flutter in android studio, install flutter and dart plugins
in android studio goto configure->plugins search for flutter, installing flutter plugin will also install dart plugin.

Top comments (1)

Collapse
 
shahadatcoder profile image
MD. Shahadat Hossain

I'm MDβ€”Shahadat Hossain from Bangladesh. I'm a fresher flutter developer. I can fetch data from the Rest API and Firebase as well. And I have MVVM architecture knowledge and I can make eye-catching UI designs. I'm committed and dedicated to my work and always learning something new.
Now I'd like to do a job or internship to increase my work ability and financial support.
Would you mind, if I got help from you about getting the opportunity to work on Flutter?