Installing Flutter

Hi, I’m trying to install Flutter , is the 3 time I try, but I always end in some error, any one know a proven way to install it correctly ??
I need also Android-studio.

Hi @paolol :slight_smile:

What is the error?

last one was missing ANDOID_SDK_ROOT.
But at the moment I removed all and cleaned the system to start fresh again, when I can find a tutorial that is up to date :slight_smile:

so it’s not a problem at the installation but a bad user var after install

After reboot, we have some env variables, for flutter i have ANDOID_SDK_ROOT, FLUTTER_ROOT and CHROME_EXECUTABLE(if chromium installed)

android-sdk is a dependency and write at install instructions for add this var

if all config is good, doctor return ok

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[βœ“] Flutter (Channel stable, 2.2.1, on Linux, locale fr_FR.UTF-8)
[βœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[βœ“] Chrome - develop for the web
[βœ“] Linux toolchain - develop for Linux desktop
[βœ“] Android Studio (version 4.2)
[βœ“] Connected device (2 available)

β€’ No issues found!

I did a manual install in home and did not use aur - only aur Android-studio (flutter has built-in update notifications and an update command so pacman is no interest for me)

  β•‘ A new version of Flutter is available!                                     β•‘
  β•‘ To update to the latest version, run "flutter upgrade".                    β•‘
$ flutter upgrade
Upgrading Flutter to 2.2.2 from 2.2.1 in /home/patrick/.local/bin/flutter...
Downloading Dart SDK from Flutter engine 91c9fc8fe011352879e3bb6660966eafc0847233...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Downloading android-arm-release/linux-x64 tools...
Downloading android-x64-release/linux-x64 tools...
Downloading android-x86 tools...
Downloading android-x64 tools...
Downloading android-arm tools...
Downloading linux-x64 tools...
1 Like

Thanks , so let’s recap.
First I have to install Android studio, then Flutter (aur or Direct ?)
Correct ??

1 Like

Working thanks

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.