1. Preparation before installation
1.1 Install jdk
Please make sure you have installed jdk and configured it before installing Android Studio.
1.2 Download AndroidStudio
Go to the AndroidStudio download page to download /sdk/installing/studio.html
2. Installation
2.1 Installation Steps
When installing, all the way to nxet is enough. It should be noted that if you install jdk, it will automatically find the path of your jdk. If it is not installed, an error should be prompted
3 .Start AndroidStudio and create a new Android project
3.1 Initialization
When you start it for the first time, you will be prompted to import the previous configuration file. How come you have the previous configuration when you use AndroidStudio for the first time? So choose the one below without setting file.
Then you come to the welcome page, you can create a new project, you can import a project, we choose to create a new project,
3.2 New Project
Pay attention to the red box in the picture below Two text boxes, package name defaults to com.example. Project name, change it, do not use a name starting with com.example
Project location text box, after I actually operated this, the default path must be used , any changes will result in an error. Because it is a 0.1 preview, I guess this is a bug.
Then go all the way to next,
3.3 cannot be started and gradle-1.6-bin.zip cannot be downloaded.
The person who encountered this error is Because the domestic G (Harmony) F (Harmony) W is relatively strong.
Let’s talk about how to solve it. The first method is to climb over the (harmony) wall and find a way by yourself. The second method is to download the gradle-1.6-bin.zip offline package. The download address is /detail/zjilvufe/5395393. No download points are required. Thank you to the uploader for your selfless dedication.
After downloading, unzip it to any location and configure the path of the environment variable to the bin directory of gradle
3.4 Create a new Android project
Configure gradle After setting the environment variables, close AndroidStudio, reopen AndroidStudio, repeat step 3.2, create a new project, and continue all the way to next. You will find that you can successfully create a new project, but the process of building the project is very slow, please wait patiently.