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 (0)