Comments

Install Android Studio and setup Flutter with faster emulator!!

 


 

 

 

To install android studio and Flutter in ubuntu

sudo snap install android-studio --classic // open the android and install fultter plugin and dart
sudo snap install flutter --classic
flutter --version
flutter doctor
sudo apt install openjdk-8-jre-headless
flutter doctor --android-licenses
flutter config --enable-web
flutter run -d chrome
sudo apt update

 

To make android studio run faster: 

 - Go to File---> Invalidate Caches/Restart and click on Iinvalidate and Restarte
 - Go to Android Virtual Device Manager --->  Great Virtual Device ---> with system image choose Lollipop with API Level 22 . and skin is Galaxy/nexus.
- The main reason in my opinion is the slow of net! so what we do? 
when android studio start to lunch it request the gradle from the website so we can download the gradle and change the URL of it as follow::
Go to :
Project FileName ---> Android ---> gradle ---> gradle.properties . and open it
you will see something like this: 
#distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
 

 so here the version of gradle is : gradle-6.7-all.zip

now go to 

https://services.gradle.org/distributions/

and download the same version as yours> 

Now copy the zip file and go to 

StudioProject ---> FileName---> android---> gradle---> wrapper. 

and past it then change the like of distribution URL as follow:

distributionUrl=gradle-6.7-all.zip

 Now save it and open your project.

- uncheck unused plugin from plugin. 

 

Finally you can know more about Flutter 

 here

Share on Google Plus

About Inas AL-Kamachy

    Blogger Comment
    Facebook Comment

0 Comments:

Post a Comment