How To Install Flutter, Android Studio And Genymotion On Linux To Make Cool Android Apps
mrfdn – Today we can see a lot of apps on google play store. ranging from games, guides, transactions and others.
So as an active android user, I want to learn to make my own android application. I want to contribute as an android developer.
Maybe it looks cool, but the challenge is that I have to be able to understand the ins and outs of android itself.
That’s why only a few who want to become developers, or maybe not interested at all.
There are those who make this (studying android) as a source of income, there are also those who do it as a hobby.
After browsing, I found a way to easily create cool android apps using the flutter framework.
But before starting to make android applications, the application needed is android studio. Meanwhile, to create android applications, we are assisted by a framework called flutter. Then to run the android application that has been made I use genymotion.
Broadly speaking, the installation steps are like this,
- Install Vscode >> install flutter and dart extensions
Install Flutter >>
run flutter doctor command to see progress- Install Android studio >> note sdk location
Install Virtualbox and genymotion >>
determine the location of the android studio sdk
In this tutorial I’m still using KDE’s MX Linux. Here’s how to install it. for installation on windows, the steps are similar and easier.
Preparation ::
- Give your hard disk about 10gb of free space, the more the better
- Minimum 4GB RAM
- Intel i5 CPU or faster
First, install vs code on the computer, it’s easy, if you already have it, then install the flutter and dart extensions.
Tutorial on how to install Flutter on Linux
After that, download flutter with the tar.gz extension from the site, then move the downloaded file to /home, then right-click and select extract here.
Still in your /home directory show hidden files and find a file called .bashrc
Open the filter and add the flutter bin path at the end of the document. on my computer I have to enter this path
export PATH=”$PATH:/home/rafi/flutter/bin/”
if it doesn’t work, try entering it without the quotes
export PATH=$PATH:/home/rafi/flutter/bin/
Please adjust to your own path.
Then open a terminal console then type flutter doctor then enter
Here we will check how the progress of our instasi. So in the end you will get a result like this.
At the beginning of the installation android studio has not been installed, so there is no green check there. Next, let’s install the android studio.
Tutorial on how to install Android Studio on Linux
1. Download android studio.
2. Move the installation file to your /home directory then right click and extract here.
3. After extracting then go to android-studio >> bin
4. Right click in an empty place and select action >> open terminal here
5. Type ./studio.sh
6. Then follow the android studio installation process to completion.
Make sure there is an internet connection to download some sdk files. Important.
If android doesn’t appear in the desktop menu, reopen the android studio application in the way above, then on the welcome screen, select configure at the bottom right and select create desktop entry.
7. Open the console and type flutter doctor
Now the tick android studio has appeared, but not finished.
8. Still in the console, type again
flutter doctor –android-toolchain
Press yes yes to finish.
9. Type flutter doctor again to see the result.
So far we have installed flutter and android studio.
Next, to run Android on a computer, we must install an emulator application. Here I use Genymotion because it feels lighter than the default emulator for android studio.
Tutorial on how to easily install Genymotion emulator on Linux
1. Download Genymotion from the site, if using windows select the one that includes virtualbox. Meanwhile, if you use Linux, you must first install Virtualbox on your Linux system.
The trick is to go to the package manager and look for Virtualbox by oracle.
Virtualbox too
can be installed later
after installing genymotion.
Create account by providing email and password. This will be used later when will run the genymotion application for the first time.
2. Once downloaded, move the .bin file to /home.
3. Right click the genymotion.bin file >> properties >> permissions and select is executable and ok.
4. Next, right-click on an empty area in /home and then open a terminal here.
5. In the terminal console that appears, type ./genymotion.xxxxx.bin (adjust)
6. Press y to install genymotion.
There will be a warning if virtualbox has been installed or not.
7. Then reopen genymotion in the above way then go to settings >> and select adb then enter where is the android sdk.
8. View android sdk location via android studio >> configure >> sdk manager
On my computer, I have it in /home/rafi/android/sdk
9. Exit settings then restart genymotion
10. Next we will create a virtual android device, we press the pink plus button in the upper right corner then follow select what android you want to install.
Here I choose android 7 only.
There will be a number of files to download.
11. When finished, run your android virtual device.
12. After loading, go to android settings, then select developer mode and enable usb debugging.
Finished.
13. To be even better, restart your computer.
14. After restarting enter the terminal console then
type flutter doctor and see the result. At least with a configuration like this we can run the android studio application on our computer.
15. Finally, as a complement, open vscode and install the flutter extension. And you can also run flutter and android studio programs and then run them through genymotion.
It’s a pretty long process. This can be done in approximately 1 hour depending on your internet connection to download the required files.
How to run an android application that has been made using Flutter
- Run the Genymotion emulator
- Drag the flutter folder to Vscode
- If no errors appear, press run or f5 on the keyboard.
- See the progress on the Vscode terminal
Wait for the process until the application created appears on your genymotion emulator.
- Finished.
The final word
This is a tutorial on how to install flutter, android studio and the genymotion emulator on a computer, then run the android application that has been created.
Hopefully useful, especially for those who have low computer hardware specs.
I think this is the best way to do it.
Post a Comment for "How To Install Flutter, Android Studio And Genymotion On Linux To Make Cool Android Apps"