Android Setup For macOS- Part 2
Install Android Studio
- First step is to download and install Android Studio of the latest version.
- Second step is to start the Android Studio and go through the ‘Android Studio Setup Wizard’ to know more about it. This will install the latest Android SDK, Android SDK Platform-Tools, and Android SDK Build-Tools, which are basically required by the Flutter.
Set up your Android device
To prepare to run in your android studio and test your Flutter app, you will need an Android device running Android version 4.1 or higher.
- You will have to Enable Developer option and USB debugging on your device.
- For Windows operating system you will have to install the Google USB Driver.
- Using a USB cable, plug your phone into your computer. If prompted on your device, authorize your computer to access your device to run the application.
Set up the Android emulator
If you want to run your applications on the emulator you will have to follow these below mentioned steps to get started with the android emulator.
- In the very first step you will have to Enable Virtual machine acceleration on your machine.
- In the second step follow the mentioned flow,Launch Android Studio->
Tools->Android>AVD Manager and then select Create Virtual Device accordingly.
- In the third step you will have to Choose a device definition according to your choice and then select Next.
- In the fourth step you will have to Select one or more system images for the Android versions which you want to emulate, and then again select Next. Usually an size x86 or x86_64 image is mostly recommended by the developers.
- Then in the fourth step Under the performance of the emulator, select Hardware
-> GLES 2.0 to implement the hardware acceleration.
- In the sixth step you will have to verify the AVD configuration is correct, and then click on to the Finish button.
- So, in the final step check on to the Android Virtual Device Manager, and click Run in the toolbar. Then the emulator starts up and automatically displays the default canvas for your selected OS version.