How to install flutter

INDEX
  1. what is flutter
  2. Install flutter SDK
  3. Setting up your android studio
  4. Errors during flutter installations their solution

what is flutter:

Flutter is a framework building mobile applications and uses the dart language to implement the GUI in  flutter.flutter is a Google work

Features of flutter :

  1. Less developmental time 
  2. Easy to use flutter frame work
  3. Works as expected
  4. Less code 

Install flutter SDK:-

You can install flutter SDK and read further information about installations on various platform. Iam here to solve your queries after installations 

Flutter official website click here.

Installing android studio:-

After installing flutter SDK 
In windows
  1. install flutter cut(ctrl+x) paste(ctrl+y) in c: drive 
  2. install android studio for windows for your version of os.
  3. run .exe file you downloaded 
  4. after running click "do not import previous settings " if your did not properly setup android studio before 
  5. next download 
  6. You Android folder in C:\Users\<username>\AppData (possible to find try it )
  7. If app not found error see below click here
 
In Linux
  1. tar -xfvw android-studio.tar
  2. cp -r  current-dirctory/android-studio /opt/
  3. cd  /opt/android-studio/bin
  4. ./studio.sh
  5. Click Don't import previous settings if you didn't properly configured android-studio before
  6. Click Next and install all items 
  7. Click then your Android folder is installed on your home directory
  8. In Android folder check for platforms folders if it already exits leave it .Else create platforms folder 
  9. Again start android studio and point it  to Android folder.
  10. Give command flutter doctor 

Error and Solutions

  • Android "SDK location not found"

    1. first find SDK location it could be in home in Linux and local/appears in windows 
    2. Android folder is SDK  which should contain Sdk folder and in it we can find platforms folder if not found add platforms empty folder.
    3. Set ANDROID_HOME environment  variable and /Android/Sdk folder 
    4. See flutter official website click here.
 
  • flutter error:gradle task assemble fail exited with exit code 1


    1. try to change your gradle version by following below steps
    2. cd app/android/gradle/wrapper/
    3. vim gradle-wrapper.properties  (edit gradle-wrapper.properties file);
    4. it might as below
      
        (change this gradle version you can change 6.8 to 6.7 or 6.9)
        distubutionUrl=https\://sevices.gradle.org/distubution/gradle-6.8-all.zip
        
      now try to run "flutter run "command 
    5.  or look below  links of stackoverflow 
    6. click here stackoverflow 

No comments: