Initial use of Androidstudio

Source: Internet
Author: User

Use Androidstudio for the first time

After installing the program to open, the first configuration of the environment will be used for a long time, need to wait patiently ...

Then go to the main interface

Click Start a new Android studio project to create an Android project

Modify the project name in application name, where the project name is also your app name; company domain is your domain name; Modify the path of the project in package name; Next, go to Project editor.

The first editing project needs to download gradle from the external network, due to the need to access foreign servers, download speed will be very slow, so choose to go to the domestic website to load the corresponding Gradle version, the URL is as follows: http://services.gradle.org/distributions/

Here I use a version of 4.1, find the file root directory of the corresponding Gradle file, put together can use the

This is the main interface diagram of the program, the above code is the default configuration, the operation of the phone will be loaded with a non-functional blank app.

Because the computer's memory is not enough, running the virtual machine is easy to crash, so I choose to use an Android phone as an external device. Here I am using Oppo R7 as the peripheral.

Before you debug, turn on the developer options for your phone. No developed mobile phone initially does not have this option, you need to set the "about this machine" multiple click on the version number, the system will show that the developer options are activated.

Then click Run in Android Studio and you'll find that your device is already displayed, select the device, click OK, wait a moment, and your first app will be installed on your phone.

Look at the phone again, there is my first program:

The first time to do Android experiments, in the configuration environment took a lot of time and effort, but after modifying a series of variables, download the configuration of the Gradle, can be installed on the phone in the first program of the feeling is still very excited.

Initial use of Androidstudio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.