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