DEV Community

Cover image for Creating a new project in #AndroidStudio + Android Studio interface overview
Odesanmi Alexander
Odesanmi Alexander

Posted on

Creating a new project in #AndroidStudio + Android Studio interface overview

To create a new project in Android Studio, click on File -> new -> new project. Doing that, a page pop up as shown below

Image description

As shown in the picture, we have different templates to use, this case, we will use Empty Activity templates as a beginner. Click on it, then you will be directed to the next page as shown below

Image description

Here, you have your Application name as 'My Application'; a name your app will be recognized with.

Followed by your package name, your package name will be different from mine, so you can leave it at default. This package name is unique as it'll be associated with your app on Play-Store or where you publish your app.

Then, we have a 'Save Location' of your app on your PC, it'll be advised a a good practice to save your project on an external drive because of virus and other malicious threat.

'Language' is the PL(Programming Language) to code. I'll chose 'java' as it is the language I use to code and we will be using.

'Minimum SDK' will also be left at default.

Click on 'Finish', then you see the Android Studio User Interface where Gradle build as shown below, and make sure your PC is connected to the internet to download necessary plugins and dependencies.

Image description

Now that we have our project set up, let's take a look at the Android Studio user interface. The Android Studio user interface consists of several main components:

  1. Toolbar: The toolbar contains buttons for common actions, such as building and running your app, debugging, and creating new files.

  2. Project Explorer: The project explorer displays the files and folders in your project. You can use it to navigate your project, create new files, and organize your code.

  3. Code Editor: The code editor is where you write your code. It provides features such as syntax highlighting, auto-completion, and code analysis.

  4. Preview Window: The preview window displays a preview of your app's user interface, allowing you to see how your app will look on different devices.

  5. Logcat: Logcat is a tool that displays the logs generated by your app. You can use it to debug your app and troubleshoot issues.

  6. Gradle Console: The Gradle console displays the output of the Gradle build system, which is used to compile and package your app.

You can navigate on top of each icon to know it name or function.

Initially, creating a new empty project, it comes with two files
'MainActivity.java' to write our java codes, and a corresponding xml file 'activity_main.xml' that depicts the layout or design of our app.

Explore it and see what you have there. In the next post, we will be creating our first Android app together, so stay tuned for my next post by following me.

Over and out. Peace.

Top comments (0)