Installing Android Studio and Creating a Simple Project

Jul 26, 2024

Notes on Installing Android Studio and Creating an Android Project

Introduction

  • Today’s topic: Installing Android Studio Flamingo on Windows and creating a simple Android project.
  • Interaction: Encourage comments for troubleshooting, and requests for likes and subscriptions.

Step 1: Downloading Android Studio

  • Go to a web browser.
  • Search for "Android Studio download".
  • Click on the official site link: developer.androidstudio.com.
  • Click on the large download button for Android Studio Flamingo.
  • Accept terms and conditions to begin the download.

Step 2: Installing Android Studio

  • Locate the downloaded file (size: 987 MB).
  • Double-click the installer to run it.
  • Accept the administrative privilege prompt.

Installation Steps

  1. Setup Wizard: Click on "Next".
  2. Android Virtual Device: Uncheck it (recommend using a physical device instead).
  3. Click "Next" and "Install" to begin installation.
  4. Wait for the installation to complete.

Step 3: Running Android Studio

  • Click "Finish" to start Android Studio.
  • Choose to not import settings, and send user statistics (optional).
  • Opt for a custom installation and continue through the setup.

Configuring Installation

  • Select JDK and Gradle directories; click "Next".
  • Choose an application theme (suggestion: Dracula).
  • Uncheck Android Virtual Device option again and click "Next".
  • Accept the license agreement and click "Finish".
  • Let the necessary files download and install.

Step 4: Creating a New Project

  • On welcome screen, click on "New Project".
  • Choose "Empty Activity" and click "Next".
  • Project Name: "Hello World".
  • Package Name: Adjust as needed (default: com.example.helloworld).
  • Set minimum SDK version (suggest Android 7 or higher).
  • Finalize by clicking "Finish" to create the project.

Step 5: Connecting Your Android Device

  • On your Android phone, navigate to Settings > About Phone.
  • Tap on MIUI Version or similar until enabled as a developer.
  • Go back, find Developer Options.
  • Enable USB Debugging and click OK.
  • Connect your phone to the computer via USB.
  • Set the USB connection to File Transfer mode.

Step 6: Running the App

  • In Android Studio, ensure the device is recognized.
  • Click on the "Run App" button.
  • Install the app on the phone; it will launch automatically.

Result

  • The app displays "Hello First Fragment".
  • Interaction with fragments functions as designed.

Conclusion

  • Successfully installed Android Studio Flamingo and ran an Android project on a device.
  • Call to action: Like and subscribe for future content.
  • Thank you for watching!

🔧