English translation
Setting Up the Development Environment: Installing Android Studio
AI Article Decision Snapshot
Turn the lesson into workflow, model, budget, and security checks before choosing tools.
Use this quick snapshot before leaving the article. It keeps the next search tied to practical AI software, model/API, cost, privacy, and implementation questions.
Workflow fit
Identify the real job behind the article: coding, research, document review, support, analytics, content, or internal automation.
Model or tool decision
Decide whether the next step is a software shortlist, an AI tool comparison, an API platform choice, or a model benchmark.
Budget and usage signal
Estimate seats, API calls, prompt volume, retries, review time, and fallback work before assuming the workflow is cheap.
Security and privacy review
Check whether source code, customer data, private documents, prompts, logs, or embeddings will enter the AI workflow.
In the previous chapter, we introduced the fundamental workflow of Android app development and clarified the steps and key components involved in building an Android application. In this chapter, we will delve into setting up the development environment—specifically, installing Android Studio, the official Integrated Development Environment (IDE) for Android development.
1. Downloading Android Studio
First, visit the official Android Studio download page:
Select and download the version compatible with your operating system. Android Studio supports major platforms including Windows, macOS, and Linux.
2. Installing Android Studio
After downloading, proceed with installation. Below are the platform-specific installation steps:
2.1 Windows
- Double-click the downloaded
.exefile to launch the installer. - In the setup wizard, click Next.
- Choose an installation directory—using the default path is recommended—then click Next.
- On the component selection screen, ensure Android Virtual Device is checked, then click Next.
- Click Install to begin installation. This process may take several minutes—please wait patiently.
- Upon completion, click Finish to exit the installer, then launch Android Studio.
2.2 macOS
- Open the downloaded
.dmgfile and drag Android Studio into the Applications folder. - Launch Android Studio from the Applications folder.
- On first launch, you’ll be prompted to import previous settings—select Do not import settings.
- Continue clicking Next until the setup wizard completes.
2.3 Linux
- Extract the downloaded
.zipfile to your preferred directory. - In a terminal, navigate to the extracted
android-studio/bindirectory. - Run the following command to launch Android Studio:
./studio.sh - Follow the on-screen instructions in the setup wizard.
3. Launching Android Studio
After installation, launch Android Studio either via its desktop icon or command line. On first launch, Android Studio performs initial configuration—including downloading essential components. The following steps occur automatically:
- Select UI Theme: Choose between Light or Darcula.
- Install SDK Components: By default, Android Studio prompts you to install the Android SDK and required SDK components—click Next to proceed.
- Configure Project Location: Accept the default project directory or specify a custom one, then click Finish.
At this point, you’ll arrive at Android Studio’s main interface—your development environment is now successfully set up.
4. Mini Exercise: Creating Your First Android Project
Let’s create a simple Android project to verify that your newly installed Android Studio is functioning correctly.
- From Android Studio’s welcome screen, click Start a new Android Studio project.
- Select the Empty Activity template, then click Next.
- Set the project name to
MyFirstApp, the package name tocom.example.myfirstapp, choose a save location, and click Finish. - In
MainActivity.java, add the following code:package com.example.myfirstapp; import android.os.Bundle; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textView = new TextView(this); textView.setText("Hello, World!"); setContentView(textView); } } - Click the Run button (▶), then select either a connected physical device or an emulator—the app
MyFirstAppwill be built and launched.
With this minimal code, your first Android app is complete—it displays the classic “Hello, World!” message.
Summary
In this chapter, we walked through downloading and installing Android Studio, and created a simple Android project to validate the setup. This establishes a solid foundation for future development work. In the next chapter, we’ll configure the Android SDK, preparing the environment for more advanced development tasks.
By mastering these fundamentals, you’ll gain confidence in Android app development—and we look forward to seeing you again in the next chapter!
Apply This Lesson
Turn this article into AI software, model, API, and security decisions.
English Article FAQ
Use this article as evidence before choosing AI tools
How should I use this AI Tutorials article?
Use it as the implementation or learning layer, then connect the idea to AI software buyer guides, tool comparisons, benchmarks, API choices, and security checks before making a production decision.
Is this English article different from the Chinese original?
The English edition is localized for global AI readers while preserving the original diagrams, screenshots, prompts, code examples, and source context from the Chinese article.
What should I read after Setting Up the Development Environment: Installing Android Studio?
Continue with AI Software Buyer Guides, AI Tools Workbench, Best AI Coding Agents, AI Model Benchmarks, OpenAI vs Anthropic API, or LLM Security Tools depending on the decision you need to make.
Can this article alone choose an AI product or model?
No. Treat the article as evidence and context, then validate fit with pricing, privacy requirements, integration effort, benchmark results, workflow tests, and fallback planning.
Continue