Installation and configuration notes for AndroidStudio3.0

Source: Internet
Author: User

Develop an Android project to build a development environment. You can choose to use Eclipse to install the ADT plugin to develop an Android project, or you can use Google's official ide--androidstudio3.0.

The specific steps for AndroidStudio3.0 installation are as follows (some of the steps are not clear, but the general idea is this):

1. Preparation-Locally deployed JDK:

Before installing AndroidStudio3.0, you need to ensure that you have a JDK (Java development component) deployed on your PC. Since I've been developing Java projects with Eclipse before, the JDK is naturally deployed.

If you do not have an installation and configuration method for deploying JDK,JDK, you can refer to one of the better blogs I've seen: http://www.cnblogs.com/liuhongfeng/p/4177568.html

2, on the Google official website Download AndroidStudio3.0 installation package, download down is an. exe file, run directly on the line. When installing, put all the installation items (Androidstudio and performance ...) are checked. Until the installation is complete. The installer is: https://developer.android.google.cn/studio/index.html

3, after installing AndroidStudio3.0, the next step is to configure the AndroidStudio3.0. Open with a shortcut, and all installation items are checked on during configuration. (This step installs the SDK, so be careful not to place the SDK installation directory in the AndroidStudio3.0 installation directory, separate it in a separate folder), and wait until the configuration is complete.

3. After the configuration is complete, select project structure in the lower right corner, the default JDK path is the Androidstudio embedded JRE, and modify the JDK location for your local deployment. The SDK path is also selected as the SDK installation directory that you just set up.

Common problems:

1, the new project, step by step to fill in the corresponding information, click Finish after the general will die. This is because AndroidStudio3.0 in the remote download Gradle compressed package, but due to the need to FQ or set up the agent, the general download does not come down to the creation of the project card die at this stage. Close the AndroidStudio3.0 directly, locate the. Gradle folder under the user folder in the C drive, continue to the Wrapper/dists folder, and you'll see the version of Gradle. For my computer, the path is C:\Users\yue\.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\. We are in Gradle resources download website http://services.gradle.org/, first download the Gradle version of the compressed package that you need. Then the puzzle is placed directly into the lower-level directory of the previous path. Open the Andriodstudio again and wait patiently for the project to be created successfully.

2. Create a solution to the problem that the simulator prompts for a password: this is because the AVD directory has Chinese, creating an environment variable (system variable) android_sdk_home, the variable value is a plain English path used to store the AVD directory. Then delete the emulator that you have created, restart AndroidStudio3.0, and recreate the emulator.

3, the first build project, error Mergedebug What, very simple, in the Gradle.properties file add a sentence: Android.enableaapt2=false
Can.

To summarize: deploy the local JDK first, and set up environment variables such as Java_home, Class_path, and so on. After the official website download the installation package, run the. exe file, tick all the installation items, complete the installation. Then start configuring AndroidStudio3.0, also check the installer including the SDK, and set the SDK path (cannot be placed in the as installation directory). Finally, set the SDK and JDK locations in the settings to create the project. When you create a project, you normally create it by step next, and once you start creating it, you can close as, just to get the. Gradle path and the Gradle version. The pre-downloaded Gradle compression package is placed directly in the. Gradle underlying folder, re-created or opened to prevent the card from dying. When creating the emulator, if you are prompted for a password because the AVD path is mixed with Chinese, you need to configure the Android_sdk_home environment variable and recreate the emulator. The first build project times mistake can add a sentence in the gradle.properties file: Android.enableaapt2=false

Over

Installation and configuration notes for AndroidStudio3.0

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.