@SarthakEducationbyCDPatel
Blog: https://profcdpatel.blogspot.com/
Medium: https://cdpateldigitalroom.medium.com/
To set up Android Studio (Ladybug is the code name for a specific version) on Windows, follow these steps:
1. Download Android Studio
Go to the official [Android Studio download page](https://developer.android.com/studio).
Download the installer for Windows.
2. Install Android Studio
Run the `.exe` installer you downloaded.
Follow the installation wizard. You can choose the default installation settings, but make sure the Android Virtual Device (AVD) and Android SDK are selected.
You may be prompted to install Android SDK, Android Emulator, and Intel HAXM during the setup. Make sure these are installed.
8
3. Set Up Android Studio
After installation, launch Android Studio:
The first time you run Android Studio, it will ask to import previous settings (if applicable). You can either import or start fresh.
Click Next to proceed with the Standard Setup option, which includes the required SDKs, Android Virtual Devices (AVDs), and emulator images.
Wait for Android Studio to finish downloading the required SDK components.
4. Install SDK Components
Android Studio will prompt you to install SDK tools, like the SDK Manager and build tools. Make sure to install them.
Open SDK Manager via `Tools - SDK Manager` and ensure that essential SDK packages are installed, such as:
SDK Platforms (for different versions of Android)
SDK Tools (Android Emulator, SDK Tools, etc.)
5. Set Up Android Virtual Device (AVD)
To test your Android apps on an emulator:
Go to Tools - AVD Manager.
Click Create Virtual Device and select a device to emulate (e.g., Pixel 5, Nexus 5X).
Choose a system image based on the Android version you'd like to use (download if necessary).
Once the emulator is set up, you can launch it from the AVD Manager.
6. Verify Installation
To test your setup, open Android Studio, and create a new project by going to File - New - New Project.
Select a template (e.g., Empty Activity) and make sure it’s set to use Kotlin or Java as the programming language.
Once your project is created, click on the green Run button or press `Shift + F10` to run the app. You can either use an AVD or connect a physical Android device to test the app.
7. Install HAXM (Optional for Windows)
For hardware acceleration (HAXM) to improve emulator performance:
Download Intel HAXM from the [Intel website](https://github.com/intel/haxm).
Run the installer and follow the instructions. This is optional but recommended if you're using the Android Emulator.
8. Configure Gradle (Optional)
Gradle is used to build Android apps. Make sure the default gradle settings are configured correctly. You can modify gradle settings in the `gradle.properties` file if needed.
9. Install Java (JDK)
Android Studio requires a JDK (Java Development Kit) to work. Make sure that the JDK is installed, as mentioned in the earlier steps. Android Studio comes bundled with its own version of the JDK, but if you want to configure your own version, set the `JAVA_HOME` environment variable accordingly.
10. Check System Requirements
Ensure your system meets the following requirements for optimal performance:
OS: Windows 10 or later
RAM: At least 8GB (16GB recommended)
CPU: 64-bit processor with at least 2.0 GHz or faster (with support for virtualization)
Disk Space: 4GB or more free space (more required for the emulator)
Conclusion
After following these steps, you should have Android Studio set up and ready to use for Android development. Happy coding!