Create Android Studio Project

First, be sure you have installed the latest version of Android Studio. Download Android Studio here.

In the Welcome to Android Studio window, click Start a new Android Studio project.

 android studio new project

Or if you have a project opened, select File > New > New Project.
In the Choose your project window, select Empty Activity
Click Next.
In the Configure your project window, enter the following values:
Name: “My First App”
Package name: “com.navin.myfirstapp”
Check the box next to Use AndroidX artifacts
You might want to change the project location.
Leave the other options as they are.
If you prefer to write your app in Java, select Java from the Language drop down.
Click Finish.

After some processing, Android Studio opens the IDE.

First, be sure the Project window is open (select View > Tool Windows > Project) and the Android view is selected from the drop-down list at the top of that window. You can then see the following files:

android studio ide

app > java > com.example.myfirstapp > MainActivity
This is the main activity (the entry point for your app). When you build and run the app, the system launches an instance of this Activity and loads its layout.
app > res > layout > activity_main.xml
This XML file defines the layout for the activity’s UI. It contains a TextView element with the text “Hello world!”.
app > manifests > AndroidManifest.xml
The manifest file describes the fundamental characteristics of the app and defines each of its components.
Gradle Scripts > build.gradle
You’ll see two files with this name: one for the project (“Project: MyFirstApp”) and one for the “app” module (“Module: app”). Each module has its own build.gradle file, but this project currently has just one module. You’ll mostly work with the module’s build.gradle file to configure how the Gradle tools compile and build your app. For more information about this file, see Configure Your Build.

You may also like...

1 Response

  1. Ravi says:

    Hello. I have a big problem via working with Android studio. i get many error about Gradle
    How to fix gradle errors?

Leave a Reply

Your email address will not be published. Required fields are marked *