Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Android Studio simply

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces you how to use Android Studio simply, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.

1. Environment

UBUNTU 14.04 + Android Studio 0.8.2

two。 Install jdk

Openjdk-7 is a good choice:

Sudo apt-get update sudo apt-get install openjdk-7-jdk

It does not rule out that you need to choose a default version:

Sudo update-alternatives-config java sudo update-alternatives-config javac

3. Install Android Studio

There are two ways to install in UBUNTU.

(1) add PPA.

Open the terminal and execute the following command:

Sudo add-apt-repository ppa:paolorotolo/android-studio sudo apt-get update sudo apt-get install android-studio

If you want to remove PPA and delete Android Studio:

Sudo apt-get install ppa-purge sudu ppa-purge ppa:paolorotolo/android-studio

(2) download and decompress directly on the official website.

Download address:

Http://developer.android.com/sdk/installing/studio.html

If you want to delete Android Studio, delete the folder android-studio directly.

Run bin/studio.sh and start Android Studio.

4. Modify settin

(1) theme.

File-Settings-Appearance-Theme-Darcula (black theme)

(2) shortcut keys.

File-Settings-Keymap-Eclipse (for students who are used to Eclipse shortcuts)

5. Engineering and module

Android Studio's project is equivalent to Eclipse's workspace.

Android Studio's module is equivalent to Eclipse's project.

(1) create a new Project

File-New Project

Fill in the package name, etc.

(2) create a new Module

File-New Module

With regard to new construction, it is important to note that:

Application name is the name of Project

By default, the Module name of the newly created Project is app. I couldn't find the setting on 0.8.2. I can only change the Module and Dir name by right-clicking-Refactor-Rename on app after creation.

(3) Import Project

In File-Close Project, press the Del key to delete the newly created ListViewSample.

We can use Open Project to open the project just now, there is no problem in this case, more often we need to import other projects into Android Stuio, let's take this as an example to see the process

Import Project-(Porject Location)

OK.

(4) create a new Module

File-New Module

Select Android Application

Application Name should use Project Name. Module Name should be named NewApp.

6. The problem of deleting Module

Many friends find that they don't know how to delete Module. Please try the following:

Right-click the module on the navigation bar (not on the Project panel), as shown below.

Delete its reference in settings.gradle

Exit Android Studio and delete the module directory in Explorer

On how to use the simple use of Android Studio to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report